LabelSpec.Parse Method
Parse a Label spec 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
spec
Type: System.Stringthe Label spec to parse
defaultScope
Type: System.StringDefault value for labelScope (may be null)
permitWildcardNames
Type: System.BooleanIndicates whether wildcard characters in label names are permitted
labelName
Type: System.String%returned Label name
labelScope
Type: System.String%returned Label scope
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.