LabelSpec.Parse 方法
分析窗体 name@scope 的标签规范并返回两个部分。 如果范围在标签规范未指定,请使用 defaultScope 参数。
命名空间: Microsoft.TeamFoundation.VersionControl.Common
程序集: Microsoft.TeamFoundation.VersionControl.Common(在 Microsoft.TeamFoundation.VersionControl.Common.dll 中)
语法
声明
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
)
参数
- spec
类型:System.String
分析的标签规范。
- defaultScope
类型:System.String
标签范围的默认值 (可能为空。)
- permitWildcardNames
类型:System.Boolean
指示在标签名称的通配符是否允许。
- labelName
类型:System.String%
返回的标签名称。
- labelScope
类型:System.String%
返回的标签范围。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。