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­Of­Type Method / Annotation­Repository­Task.​Get­Annotations­Of­Type Method (Type­Def­Declaration, Boolean, Boolean)

AnnotationRepositoryTask.GetAnnotationsOfType Method (TypeDefDeclaration, Boolean, Boolean)

Gets all custom attribute instances of a given custom attribute class, given a base TypeDefDeclaration.

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> GetAnnotationsOfType(
	TypeDefDeclaration type,
	bool inherited,
	bool allModules
)

Parameters

type
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
Base type of requested custom attribute instances.
inherited
Type: System.Boolean
Whether instances of types inherited from type are requested.
allModules
Type: System.Boolean

[Missing <param name="allModules"/> documentation for "M:PostSharp.Sdk.Extensibility.Tasks.AnnotationRepositoryTask.GetAnnotationsOfType(PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean,System.Boolean)"]

Return Value

Type: IEnumerator<IAnnotationInstance>
An enumerator of the requested custom attribute instances.

Implements

IAnnotationRepositoryService.GetAnnotationsOfType(TypeDefDeclaration, Boolean, Boolean)
See Also