PostSharp4.3/API Reference/Post­Sharp.​Aspects Namespace/Advice­Args Class/Advice­Args Properties/Advice­Args.​Declaration­Identifier Property
AdviceArgs.DeclarationIdentifier Property
Gets the DeclarationIdentifier of the declaration to which the advice has been applied.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: (
public DeclarationIdentifier DeclarationIdentifier { get; set; }

Property Value

Type: DeclarationIdentifier

For usage information, see the remarks of the DeclarationIdentifier type documentation.

Note Note
As a result of weaving optimizations, value of this property may be seen null in a debugger. If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.
See Also