Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Workspace.TryGetServerItemForLocalItem Method (String, Boolean)

Gets the corresponding server item for a local item.

Does not throw ItemNotMappedException or ItemCloakedException.

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

public string TryGetServerItemForLocalItem(
	string localItem,
	bool detectImplicitCloak


Type: System.String

The local item to translate

Type: System.Boolean

If true, detect and return null if the local item is implicitly cloaked in the workspace

Return Value

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

First shipped in TFS 2012

© 2015 Microsoft