Post­Sharp Documentation / 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: 6.1.6.0 (6.1.6.0)
Syntax
C#
public DeclarationIdentifier DeclarationIdentifier { get; set; }

Property Value

Type: DeclarationIdentifier
Remarks

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