PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
void PushAnnotation(
	Object targetDeclaration,
	Type annotationClass = null,
	string arguments = null,
	string description = null,
	int linesOfCodeAvoided = 0


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