This documentation is archived and is not being maintained.

SecurityPermissionAttribute Members

SecurityPermissionAttribute overview

Public Constructors

public constructorSecurityPermissionAttribute Constructor Initializes a new instance of the SecurityPermissionAttribute class with the specified SecurityAction.

Public Properties

public propertyAction (inherited from SecurityAttribute) Gets or sets a security action.
public propertyAssertion Gets or sets a value indicating whether permission to assert that all this code's callers have the requisite permission for the operation is declared.
public propertyControlAppDomain Gets or sets a value indicating whether permission to manipulate AppDomain is declared.
public propertyControlDomainPolicy Gets or sets a value indicating whether permission to alter or manipulate domain security policy is declared.
public propertyControlEvidence Gets or sets a value indicating whether permission to alter or manipulate evidence is declared.
public propertyControlPolicy Gets or sets a value indicating whether permission to view and manipulate security policy is declared.
public propertyControlPrincipal Gets or sets a value indicating whether permission to manipulate the current principal is declared.
public propertyControlThread Gets or sets a value indicating whether permission to manipulate threads is declared.
public propertyExecution Gets or sets a value indicating whether permission to execute code is declared.
public propertyFlags Gets or sets all permission flags comprising the SecurityPermission permissions.
public propertyInfrastructure Gets or sets a value indicating whether code can plug into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.
public propertyRemotingConfiguration Gets or sets a value indicating whether code can configure remoting types and channels.
public propertySerializationFormatter Gets or sets a value indicating whether code can use a serialization formatter to serialize or deserialize an object.
public propertySkipVerification Gets or sets a value indicating whether permission to bypass code verification is declared.
public propertyTypeId (inherited from Attribute) When implemented in a derived class, gets a unique identifier for this Attribute.
public propertyUnmanagedCode Gets or sets a value indicating whether permission to call unmanaged code is declared.
public propertyUnrestricted (inherited from SecurityAttribute) Gets or sets a value indicating whether full (unrestricted) permission to the resource protected by the attribute is declared.

Public Methods

public methodCreatePermission Overridden. Creates and returns a new SecurityPermission.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Attribute) Overridden. Returns the hash code for this instance.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodIsDefaultAttribute (inherited from Attribute) When overridden in a derived class, returns an indication whether the value of this instance is the default value for the derived class.
public methodMatch (inherited from Attribute) When overridden in a derived class, returns a value indicating whether this instance equals a specified object.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SecurityPermissionAttribute Class | System.Security.Permissions Namespace

Show: