TeamFoundationVersionControlService.CreateAnnotation Method
Create and persist an instance of an annotation.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Sub CreateAnnotation ( _
requestContext As TeamFoundationRequestContext, _
annotationName As String, _
annotatedItem As String, _
version As Integer, _
annotationValue As String, _
comment As String, _
overwrite As Boolean _
)
public void CreateAnnotation(
TeamFoundationRequestContext requestContext,
string annotationName,
string annotatedItem,
int version,
string annotationValue,
string comment,
bool overwrite
)
public:
void CreateAnnotation(
TeamFoundationRequestContext^ requestContext,
String^ annotationName,
String^ annotatedItem,
int version,
String^ annotationValue,
String^ comment,
bool overwrite
)
member CreateAnnotation :
requestContext:TeamFoundationRequestContext *
annotationName:string *
annotatedItem:string *
version:int *
annotationValue:string *
comment:string *
overwrite:bool -> unit
public function CreateAnnotation(
requestContext : TeamFoundationRequestContext,
annotationName : String,
annotatedItem : String,
version : int,
annotationValue : String,
comment : String,
overwrite : boolean
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
annotationName
Type: System.StringThis is the name of the annotation.
annotatedItem
Type: System.StringOptional item to associate the annotation with.
version
Type: System.Int32This is the version of the item to associate the annotation with.
annotationValue
Type: System.StringThis is the value of the annotation.
comment
Type: System.StringOptional comment to tag together with the annotation.
overwrite
Type: System.BooleanIf overwrite is true and the annotation exists this will cause it to be overwritten. If it does not it will be created. If it is false then this instance is added even if others already exist.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.