共用方式為


VersionControlServer.CompareLabels Method

Queries for a list of labels applied to items in the repository.

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

Syntax

'Declaration
Public Function CompareLabels ( _
    startLabelName As String, _
    startLabelScope As String, _
    endLabelName As String, _
    endLabelScope As String, _
    minChangeSet As Integer, _
    maxCount As Integer _
) As Changeset()
public Changeset[] CompareLabels(
    string startLabelName,
    string startLabelScope,
    string endLabelName,
    string endLabelScope,
    int minChangeSet,
    int maxCount
)
public:
array<Changeset^>^ CompareLabels(
    String^ startLabelName, 
    String^ startLabelScope, 
    String^ endLabelName, 
    String^ endLabelScope, 
    int minChangeSet, 
    int maxCount
)
member CompareLabels : 
        startLabelName:string * 
        startLabelScope:string * 
        endLabelName:string * 
        endLabelScope:string * 
        minChangeSet:int * 
        maxCount:int -> Changeset[] 
public function CompareLabels(
    startLabelName : String, 
    startLabelScope : String, 
    endLabelName : String, 
    endLabelScope : String, 
    minChangeSet : int, 
    maxCount : int
) : Changeset[]

Parameters

  • startLabelName
    Type: System.String

    Name of the label starting the range

  • startLabelScope
    Type: System.String

    Scope of the label starting the range

  • endLabelName
    Type: System.String

    Name of the label ending the range

  • endLabelScope
    Type: System.String

    Scope of the label ending the range

  • minChangeSet
    Type: System.Int32

    Minimum changeset. 0 == all

  • maxCount
    Type: System.Int32

    Maximum number of changesets to return

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client.Changeset[]
The label information for each label selected by the query

.NET Framework Security

See Also

Reference

VersionControlServer Class

Microsoft.TeamFoundation.VersionControl.Client Namespace