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: 2023.0.3.0 (2023.0.3.0)
C#
public interface IAnnotationRepositoryService : IService
The IAnnotationRepositoryService type exposes the following members.
Name | Description | |
---|---|---|
AddAnnotation |
Adds a custom attribute instance to the current repository.
| |
GetAnnotationsOfType(Type, Boolean, Boolean) |
Gets all custom attribute instances of a given custom attribute class in a given ModuleDeclaration
given a base Type.
| |
GetAnnotationsOfType(TypeDefDeclaration, Boolean, Boolean) |
Gets all custom attribute instances of a given custom attribute class in a given ModuleDeclaration
given a base TypeDefDeclaration.
| |
GetAnnotationsOnTarget |
Gets an enumerator of all annotations defined on a target (i.e. on a MetadataDeclaration).
| |
RemoveAnnotation |
Removes a custom attribute instance from the current repository.
|