VersionControlServer.ServerItemExists 方法 (String, VersionSpec, DeletedState, ItemType)

會檢查指定的路徑、版本和型別的項目儲存機制。

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

語法

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

參數

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

傳回值

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

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

ServerItemExists 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間