GetServerItemForLocalItem Method
TOC
Collapse the table of content
Expand the table of content

Workspace.GetServerItemForLocalItem Method

Gets the corresponding server item for the specified local item.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public string GetServerItemForLocalItem(
	string localItem
)

Parameters

localItem
Type: System.String

The path to the local item.

Return Value

Type: System.String
The corresponding server item for the specified local item.

ExceptionCondition
ItemNotMappedException

Thrown if the local item is not mapped in the workspace.

ItemCloakedException

Thrown if the local item is cloaked in the workspace.

First shipped in TFS 2005

Show:
© 2016 Microsoft