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­Of­Type Method / IAnnotation­Repository­Service.​Get­Annotations­Of­Type Method (Type, Boolean, Boolean)

IAnnotationRepositoryService.GetAnnotationsOfType Method (Type, Boolean, Boolean)

Gets all custom attribute instances of a given custom attribute class in a given ModuleDeclaration given a base Type.

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

Parameters

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

Return Value

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