Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

VersionControlServer.ServerItemExists Method (String, ItemType)

Checks to see if the item of the specified path 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, 
	itemType : ItemType
) : boolean

Parameters

path
Type: System.String

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

itemType
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemType

The ItemType of the item.

Return Value

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

Show:
© 2015 Microsoft