PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / IAnnotation­Repository­Service Interface

IAnnotationRepositoryService Interface

Exposes the service of the annotation repository. An annotation is a generalization of a custom attribute. Tasks (for instance MulticastAttributeTask) can add annotations that are not represented as custom attributes. The repository is indexed by annotation 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#
public interface IAnnotationRepositoryService : IService

The IAnnotationRepositoryService type exposes the following members.

Methods
  NameDescription
Public methodAddAnnotation
Adds a custom attribute instance to the current repository.
Public methodGetAnnotationsOfType(Type, Boolean, Boolean)
Gets all custom attribute instances of a given custom attribute class in a given ModuleDeclaration given a base Type.
Public methodGetAnnotationsOfType(TypeDefDeclaration, Boolean, Boolean)
Gets all custom attribute instances of a given custom attribute class in a given ModuleDeclaration given a base TypeDefDeclaration.
Public methodGetAnnotationsOnTarget
Gets an enumerator of all annotations defined on a target (i.e. on a MetadataDeclaration).
Public methodRemoveAnnotation
Removes a custom attribute instance from the current repository.
See Also