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

IAnnotationRepositoryService.AddAnnotation Method

Adds a custom attribute instance to the current repository.

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#
void AddAnnotation(
	IAnnotationInstance instance
)

Parameters

instance
Type: PostSharp.Sdk.CodeModel.IAnnotationInstance
A new custom attribute instance.
See Also