共用方式為


TeamFoundationVersionControlService.LabelItem Method (TeamFoundationRequestContext, String, String, VersionControlLabel, array<LabelItemSpec , LabelChildOption)

Creates or updates a label. Associates the given versions of the given items.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
Public Function LabelItem ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    label As VersionControlLabel, _
    labelSpecs As LabelItemSpec(), _
    children As LabelChildOption _
) As TeamFoundationDataReader
public TeamFoundationDataReader LabelItem(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    VersionControlLabel label,
    LabelItemSpec[] labelSpecs,
    LabelChildOption children
)
public:
TeamFoundationDataReader^ LabelItem(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    VersionControlLabel^ label, 
    array<LabelItemSpec^>^ labelSpecs, 
    LabelChildOption children
)
member LabelItem : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        label:VersionControlLabel * 
        labelSpecs:LabelItemSpec[] * 
        children:LabelChildOption -> TeamFoundationDataReader
public function LabelItem(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    label : VersionControlLabel, 
    labelSpecs : LabelItemSpec[], 
    children : LabelChildOption
) : TeamFoundationDataReader

Parameters

  • workspaceName
    Type: System.String

    Name of workspace if itemSpecs are local.

  • workspaceOwner
    Type: System.String

    Owner of workspace if itemSpecs are local.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: LabelResult[] - List of labels and their associated actions. Failure[] - List of failures encountered when expanding itemSpecs.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

LabelItem Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace