LabelSpec Class

A utility class for manipulating label specifications. It contains routines for parsing, formatting, validating, and so on.

System.Object
  Microsoft.TeamFoundation.VersionControl.Common.LabelSpec

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

public static class LabelSpec

The LabelSpec type exposes the following members.

  NameDescription
Public methodStatic memberCombineBuilds the qualified label name from the label name and scope parts.
Public methodStatic memberIsLegalName(String)
Public methodStatic memberIsLegalName(String, Boolean)
Public methodStatic memberIsLegalScopeReturns true if labelScope is a valid label scope. Verifies it is a server item without wildcard characters.
Public methodStatic memberIsLegalSpec(String)Returns true if labelSpec is a valid label specification.
Public methodStatic memberIsLegalSpec(String, Boolean)Returns true if labelSpec is a valid label specification.
Public methodStatic memberParseParses 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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft