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

AnnotationRepositoryTask.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#
public 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.

Implements

IAnnotationRepositoryService.GetAnnotationsOnTarget(MetadataDeclaration)
See Also