LabelSpec.Parse Method

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.

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

Syntax

'Declaration
Public Shared Sub Parse ( _
    spec As String, _
    defaultScope As String, _
    permitWildcardNames As Boolean, _
    <OutAttribute> ByRef labelName As String, _
    <OutAttribute> ByRef labelScope As String _
)
public static void Parse(
    string spec,
    string defaultScope,
    bool permitWildcardNames,
    out string labelName,
    out string labelScope
)
public:
static void Parse(
    String^ spec, 
    String^ defaultScope, 
    bool permitWildcardNames, 
    [OutAttribute] String^% labelName, 
    [OutAttribute] String^% labelScope
)
static member Parse : 
        spec:string * 
        defaultScope:string * 
        permitWildcardNames:bool * 
        labelName:string byref * 
        labelScope:string byref -> unit
public static function Parse(
    spec : String, 
    defaultScope : String, 
    permitWildcardNames : boolean, 
    labelName : String, 
    labelScope : String
)

Parameters

  • defaultScope
    Type: System.String

    Default value for label scope (may be null.)

  • permitWildcardNames
    Type: System.Boolean

    Indicates whether wildcard characters in label names are permitted.

.NET Framework Security

See Also

Reference

LabelSpec Class

Microsoft.TeamFoundation.VersionControl.Common Namespace