System.Security.Permissions.ResourcePermissionBase Members

The members of System.Security.Permissions.ResourcePermissionBase are listed below.

See Also: Inherited members from System.Security.CodeAccessPermission

Protected Constructors

Initializes a new instance of the System.Security.Permissions.ResourcePermissionBase class.

Initializes a new instance of the System.Security.Permissions.ResourcePermissionBase class with the specified level of access to resources at creation.

Public Fields

const
Anystring.

Specifies the character to be used to represent the any wildcard character.

const
Localstring.

Specifies the character to be used to represent a local reference.

Protected Properties

PermissionAccessTypeType.

Gets or sets an enumeration value that describes the types of access that you are giving the resource.

TagNamesstring[].

Gets or sets an array of strings that identify the resource you are protecting.

Public Methods

override
Copy() : System.Security.IPermission

Creates and returns an identical copy of the current permission object.

override
FromXml(System.Security.SecurityElement)

Reconstructs a security object with a specified state from an XML encoding.

override
Intersect(System.Security.IPermission) : System.Security.IPermission

Creates and returns a permission object that is the intersection of the current permission object and a target permission object.

override
IsSubsetOf(System.Security.IPermission) : bool

Determines whether the current permission object is a subset of the specified permission.

IsUnrestricted() : bool

Gets a value indicating whether the permission is unrestricted.

override
ToXml() : System.Security.SecurityElement

Creates and returns an XML encoding of the security object and its current state.

override
Union(System.Security.IPermission) : System.Security.IPermission

Creates a permission object that combines the current permission object and the target permission object.

Protected Methods

AddPermissionAccess(ResourcePermissionBaseEntry)

Adds a permission entry to the permission.

Clear()

Clears the permission of the added permission entries.

GetPermissionEntries() : ResourcePermissionBaseEntry[]

Returns an array of the System.Security.Permissions.ResourcePermissionBaseEntry objects added to this permission.

RemovePermissionAccess(ResourcePermissionBaseEntry)

Removes a permission entry from the permission.