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

IAnnotationRepositoryService Methods

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