Export (0) Print
Expand All

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)

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.

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.

Return Value

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

Show:
© 2014 Microsoft