LabelSpec Class
A utility class for manipulating label specifications. It contains routines for parsing, formatting, validating, and so on.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.VersionControl.Common.LabelSpec
Namespace: Microsoft.TeamFoundation.VersionControl.Common
Assembly: Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)
Syntax
'Declaration
Public NotInheritable Class LabelSpec
public static class LabelSpec
public ref class LabelSpec abstract sealed
[<AbstractClass>]
[<Sealed>]
type LabelSpec = class end
public final class LabelSpec
The LabelSpec type exposes the following members.
Methods
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. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.