Delen via


VersionControlServer.ServerItemExists Method (String, VersionSpec, DeletedState, ItemType)

Checks to see if the item of the specified path, version, and type exists in the repository.

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
)
public:
bool ServerItemExists(
    String^ path, 
    VersionSpec^ version, 
    DeletedState deletedState, 
    ItemType itemType
)
member ServerItemExists : 
        path:string * 
        version:VersionSpec * 
        deletedState:DeletedState * 
        itemType:ItemType -> bool
public function ServerItemExists(
    path : String, 
    version : VersionSpec, 
    deletedState : DeletedState, 
    itemType : ItemType
) : boolean

Parameters

  • path
    Type: System.String

    The path of the item to check for, may be server or local.

Return Value

Type: System.Boolean
True if the specified item in the repository. False otherwise.

.NET Framework Security

See Also

Reference

VersionControlServer Class

ServerItemExists Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace