PostSharp 4.3 / / Post­Sharp Documentation / 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: 4.3.48.0 (4.3.48.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