PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
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 as null in a debugger. If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.
See Also