PostSharp / / API Reference / Post­Sharp.​Aspects / IAspect­Repository­Service / Get­Aspect­Instances
Open sandbox

Method GetAspectInstances

GetAspectInstances(Object)

Gets the list of aspect instances on a given declaration.

Declaration
IAspectInstance[] GetAspectInstances(object declaration)
Parameters
Type Name Description
Object declaration

The declaration (in the current assembly) for which the list of aspect instances is required.

Returns
Type Description
IAspectInstance[]

The list of aspect instances applied on declaration.