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

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

Parameters

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

Implements

IAnnotationRepositoryService.AddAnnotation(IAnnotationInstance)
See Also