Export (0) Print
Expand All

VersionControlServer.GetItem Method (String, VersionSpec)

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,
	VersionSpec version
)
public Item GetItem (
	String path, 
	VersionSpec version
)
public function GetItem (
	path : String, 
	version : VersionSpec
) : Item

Parameters

path

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

version

The version being listed.

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.

Community Additions

ADD
Show:
© 2014 Microsoft