VersionControlServer.ServerItemExists 方法 (String, ItemType)

檢查指定的路徑和型別的項目是否存在於儲存機制。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public Function ServerItemExists ( _
    path As String, _
    itemType As ItemType _
) As Boolean
public bool ServerItemExists(
    string path,
    ItemType itemType
)

參數

  • path
    類型:System.String
    要檢查之項目的路徑,可能是伺服器或區域。

傳回值

類型:System.Boolean
如果指定的項目在儲存機制中,則為 true。否則為 False。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

ServerItemExists 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間