Share via


VersionControlServer.ServerItemExists-Methode (String, ItemType)

Überprüft, überprüft, ob das Element des angegebenen Pfad und des Typs 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, _
    itemType As ItemType _
) As Boolean
public bool ServerItemExists(
    string path,
    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 ist.Anderenfalls False.

.NET Framework-Sicherheit

Siehe auch

Referenz

VersionControlServer Klasse

ServerItemExists-Überladung

Microsoft.TeamFoundation.VersionControl.Client-Namespace