VersionControlServer.QueryLabels Method (String, String, String, Boolean)
Queries for an array of VersionControlLabel objects 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 QueryLabels ( _
labelName As String, _
labelScope As String, _
owner As String, _
includeItems As Boolean _
) As VersionControlLabel()
public VersionControlLabel[] QueryLabels(
string labelName,
string labelScope,
string owner,
bool includeItems
)
public:
array<VersionControlLabel^>^ QueryLabels(
String^ labelName,
String^ labelScope,
String^ owner,
bool includeItems
)
member QueryLabels :
labelName:string *
labelScope:string *
owner:string *
includeItems:bool -> VersionControlLabel[]
public function QueryLabels(
labelName : String,
labelScope : String,
owner : String,
includeItems : boolean
) : VersionControlLabel[]
Parameters
labelName
Type: System.StringThe name of the label being queried.
labelScope
Type: System.StringThe repository path representing the scope at which the label is defined.
owner
Type: System.StringThe user who created the label. Specify null to match all owners.
includeItems
Type: System.BooleanTrue to include items in the labels. False to not include.
Return Value
Type: array<Microsoft.TeamFoundation.VersionControl.Client.VersionControlLabel[]
An array of VersionControlLabel objects resulting from the query.
.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.