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

VersionControlServer::TryGetWorkspace Method

Gets the workspace that is mapped to the specified local path. Does not throw an exception.

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

Workspace^ TryGetWorkspace(
	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. Null if a workspace is not found.

This method searches all known workspaces on the current computer to identify a workspace that has explicitly or implicitly mapped the provided local path.

© 2015 Microsoft