PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IWeaving­Symbols­Service Interface / IWeaving­Symbols­Service Methods / IWeaving­Symbols­Service.​Push­Annotation Method

IWeavingSymbolsService.PushAnnotation Method

Pushes an annotation to PostSharp Tools for Visual Studio.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
void PushAnnotation(
	Object targetDeclaration,
	Type annotationClass = null,
	string arguments = null,
	string description = null,
	int linesOfCodeAvoided = 0
)

Parameters

targetDeclaration
Type: System.Object
The declaration to which the annotation relate.
annotationClass (Optional)
Type: System.Type
The type of the annotation.
arguments (Optional)
Type: System.String
Arguments of the annotation.
description (Optional)
Type: System.String
A human-readable description of the annotation.
linesOfCodeAvoided (Optional)
Type: System.Int32
A number incrementing the number of lines of code saved on targetDeclaration.
See Also