VersionControlLabelExt.OpenLabel 方法 (String, String, String)
開啟新的標籤文件視窗將標籤名稱、範圍和擁有者。
這個方法可能會擲回 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
開啟標籤的擁有者 (可以是 Null)。
傳回值
類型:Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlLabelDocument
開啟的 VersionControlLabelDocument。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。