The members of System.Security.CodeAccessPermission are listed below.
See Also: Inherited members from System.Object
Protected Constructors
Public Methods
| Assert()
Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using CodeAccessPermission.Assert can create security issues.
|
abstract | Copy() : IPermission
When implemented by a derived class, creates and returns an identical copy of the current permission object.
|
| Demand()
Forces a System.Security.SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance.
|
| Deny()
Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance.
|
override | Equals(object) : bool
Determines whether the specified System.Security.CodeAccessPermission object is equal to the current System.Security.CodeAccessPermission.
|
abstract | FromXml(SecurityElement)
When overridden in a derived class, reconstructs a security object with a specified state from an XML encoding.
|
override | GetHashCode() : int
Gets a hash code for the System.Security.CodeAccessPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.
|
abstract | Intersect(IPermission) : IPermission
When implemented by a derived class, creates and returns a permission that is the intersection of the current permission and the specified permission.
|
abstract | IsSubsetOf(IPermission) : bool
When implemented by a derived class, determines whether the current permission is a subset of the specified permission.
|
| PermitOnly()
Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance.
|
static | RevertAll()
Causes all previous overrides for the current frame to be removed and no longer in effect.
|
static | RevertAssert()
Causes any previous CodeAccessPermission.Assert for the current frame to be removed and no longer in effect.
|
static | RevertDeny()
Causes any previous CodeAccessPermission.Deny for the current frame to be removed and no longer in effect.
|
static | RevertPermitOnly()
Causes any previous CodeAccessPermission.PermitOnly for the current frame to be removed and no longer in effect.
|
override | ToString() : string
Creates and returns a string representation of the current permission object.
|
abstract | ToXml() : SecurityElement
When overridden in a derived class, creates an XML encoding of the security object and its current state.
|
| Union(IPermission) : IPermission
When overridden in a derived class, creates a permission that is the union of the current permission and the specified permission.
|