PostSharp SDK6.6//Post­Sharp.​Sdk.​Weaving­Symbols Namespace/Sym­Aspect­Usage Class

SymAspectUsage Class

Represents an aspect usage in a symbol document. A SymAspectUsage corresponds to an instance of custom attribute, which in turn can be applied to multiple targets and generate multiple aspect instances (SymAspectInstance).
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Element
    PostSharp.Sdk.CodeModel.Declaration
      PostSharp.Sdk.WeavingSymbols.SymAspectUsage

Namespace:  PostSharp.Sdk.WeavingSymbols
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.6.3.0 (6.6.3.0)
Syntax
C#
public class SymAspectUsage : Declaration

The SymAspectUsage type exposes the following members.

Constructors
  NameDescription
Public methodSymAspectUsage
Initializes a new SymAspectUsage.
Properties
  NameDescription
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyId
Gets the unique identifier of the current SymAspectUsage.
Public propertyInstances
Gets the collection of targets to which the current SymAspectInstance is applied.
Public propertyOrigin
Gets the origin of the current SymAspectUsage, i.e. the location where it has been defined.
Public propertyParentClass
Gets the SymAspectClass of which the current SymAspectUsage is an instance.
Public propertyTitle
Gets or sets the human-readable title of the current SymAspectUsage.
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChildPropertyChanged
Method invoked when a property of a child has been changed.
(Inherited from Element.)
Protected methodOnPropertyChanged
Method invoked when a property of the current instance has been changed.
(Inherited from Element.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also