PostSharp6.0/API Reference/Post­Sharp.​Aspects Namespace/IAspect­Repository­Service Interface/IAspect­Repository­Service Methods/IAspect­Repository­Service.​Get­Aspect­Instances Method

IAspectRepositoryService.GetAspectInstances Method

Gets the list of aspect instances on a given declaration.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
IAspectInstance[] GetAspectInstances(
	Object declaration
)

Parameters

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

Return Value

Type: IAspectInstance[]
The list of aspect instances applied on declaration.
See Also