打开一个新标签文档窗口将该标签的名称、大小和所有者。
此方法会引发 LabelNotFoundException 或 LabelNotUniqueException,以及其他功能。
命名空间: Microsoft.VisualStudio.TeamFoundation.VersionControl
程序集: Microsoft.VisualStudio.TeamFoundation.VersionControl(在 Microsoft.VisualStudio.TeamFoundation.VersionControl.dll 中)
语法
声明
Public Function OpenLabel ( _
labelName As String, _
labelScope As String, _
labelOwner As String _
) As VersionControlLabelDocument
public VersionControlLabelDocument OpenLabel(
string labelName,
string labelScope,
string labelOwner
)
参数
- labelName
类型:System.String
打开标签的名称。
- labelScope
类型:System.String
打开标签的范围。
- labelOwner
类型:System.String
打开标签的所有者 (可能为空。)
返回值
类型:Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlLabelDocument
打开的 VersionControlLabelDocument。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。