Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

Community Additions

© 2015 Microsoft