This documentation is archived and is not being maintained.

VersionControlServer.GetItem Method (String)

Gets the Item object for the path specified.

Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in microsoft.teamfoundation.versioncontrol.client.dll)

public Item GetItem (
	string path
public Item GetItem (
	String path
public function GetItem (
	path : String
) : Item



The path of the Item being listed that may be on a server or on the local computer.

Return Value

Returns the requested Item. If the Item is not found, an exception is thrown.

Exception typeCondition


Thrown if there is a wildcard character in path.


Thrown if the item was not found.

Wildcard characters are not allowed in path.