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

VersionControlServer.GetWorkspace Method (String)

Gets the Workspace that is mapped to the specified local path.

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

public Workspace GetWorkspace(
	string localPath


Type: System.String
The local path of the desired Workspace.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The Workspace object that is associated with the specified local path.


Thrown if no Workspace is found associated with the specified WorkspaceInfo.

This method searches all known workspaces on the current computer to identify a workspace that has explicitly or implicitly mapped the provided local path. If no workspace is found, this method throws an ItemNotMappedException.

Community Additions

© 2015 Microsoft