PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / IAnnotation­Repository­Service Interface / IAnnotation­Repository­Service Methods / IAnnotation­Repository­Service.​Get­Annotations­On­Target Method

IAnnotationRepositoryService.GetAnnotationsOnTarget Method

Gets an enumerator of all annotations defined on a target (i.e. on a MetadataDeclaration).

Namespace:  PostSharp.Sdk.Extensibility.Tasks
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
IEnumerator<IAnnotationInstance> GetAnnotationsOnTarget(
	MetadataDeclaration target
)

Parameters

target
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
The declaration whose annotations have to be returned.

Return Value

Type: IEnumerator<IAnnotationInstance>
An enumerator of all annotations defined on target.
See Also