This documentation is archived and is not being maintained.
LabelSpec Class
Visual Studio 2013
A utility class for manipulating label specifications. It contains routines for parsing, formatting, validating, and so on.
Namespace: Microsoft.TeamFoundation.VersionControl.Common
Assembly: Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)
The LabelSpec type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Combine | Builds the qualified label name from the label name and scope parts. |
![]() ![]() | IsLegalName(String) | |
![]() ![]() | IsLegalName(String, Boolean) | |
![]() ![]() | IsLegalScope | Returns true if labelScope is a valid label scope. Verifies it is a server item without wildcard characters. |
![]() ![]() | IsLegalSpec(String) | Returns true if labelSpec is a valid label specification. |
![]() ![]() | IsLegalSpec(String, Boolean) | Returns true if labelSpec is a valid label specification. |
![]() ![]() | Parse | Parses a label specification of the form name@scope and return the two parts. If the scope is not specified in the label specification, use the defaultScope argument. |
Show:
