This documentation is archived and is not being maintained.
VersionControlServer.ServerItemExists Method (String, VersionSpec, DeletedState, ItemType)
Visual Studio 2013
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)
'Declaration Public Function ServerItemExists ( _ path As String, _ version As VersionSpec, _ deletedState As DeletedState, _ itemType As ItemType _ ) As Boolean
Parameters
- path
- Type: System.String
The path of the item to check for, may be server or local.
- version
- Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version of the item to check for.
- deletedState
- Type: Microsoft.TeamFoundation.VersionControl.Client.DeletedState
Whether the item must be non-deleted, deleted, or any state.
- itemType
- Type: Microsoft.TeamFoundation.VersionControl.Client.ItemType
The ItemType of the item to check for.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: