PostSharp SDK6.6//Post­Sharp.​Sdk.​Code­Model Namespace/Permission­Declaration Class

PermissionDeclaration Class

Represents a permission attribute.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Element
    PostSharp.Sdk.CodeModel.Declaration
      PostSharp.Sdk.CodeModel.PermissionDeclaration

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.6.3.0 (6.6.3.0)
Syntax
C#
public sealed class PermissionDeclaration : Declaration, 
	ICloneableModuleElement, IModuleElement

The PermissionDeclaration type exposes the following members.

Constructors
  NameDescription
Public methodPermissionDeclaration
Initializes a new instance of the PermissionDeclaration class
Properties
  NameDescription
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyIsDisposed
Determines whether the current instance has been disposed.
Public propertyType
Gets the type of permission attribute.
Methods
  NameDescription
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodClone
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
Permission attributes are owned by permission sets (PermissionSetDeclaration).
See Also