Поделиться через


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
Public methodStatic member Combine Builds the qualified label name from the label name and scope parts.
Public methodStatic member IsLegalName(String)
Public methodStatic member IsLegalName(String, Boolean)
Public methodStatic member IsLegalScope Returns true if labelScope is a valid label scope. Verifies it is a server item without wildcard characters.
Public methodStatic member IsLegalSpec(String) Returns true if labelSpec is a valid label specification.
Public methodStatic member IsLegalSpec(String, Boolean) Returns true if labelSpec is a valid label specification.
Public methodStatic member 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.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Common Namespace