Export (0) Print
Expand All

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

Parameters

path

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

ArgumentException

Thrown if there is a wildcard character in path.

VersionControlException

Thrown if the item was not found.

Wildcard characters are not allowed in path.

Community Additions

ADD
Show:
© 2014 Microsoft