Share via


VersionControlServer.ServerItemExists-Methode (String, VersionSpec, DeletedState, ItemType)

Überprüft, überprüft, ob das Element des angegebenen Pfad, der Version und Typ im Repository vorhanden ist.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
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
)

Parameter

  • path
    Typ: System.String
    Der Pfad zu dem Element, um zu überprüfen, ggf. Server oder lokale Variable.

Rückgabewert

Typ: System.Boolean
True wenn das angegebene Element im Repository.Anderenfalls False.

.NET Framework-Sicherheit

Siehe auch

Referenz

VersionControlServer Klasse

ServerItemExists-Überladung

Microsoft.TeamFoundation.VersionControl.Client-Namespace