PostSharpAPI ReferencePost­Sharp.​AspectsIAspect­Repository­ServiceGet­Aspect­Instances
Open sandboxFocus

IAspectRepositoryService.GetAspectInstances Method

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.