This topic has not yet been rated - Rate this topic

VersionControlServer.GetWorkspace Method (String, String)

Gets the Workspace associated with the specified name and owner.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public function GetWorkspace(
	workspaceName : String, 
	workspaceOwner : String
) : Workspace

Parameters

workspaceName
Type: String

The name of the Workspace to get.

workspaceOwner
Type: String

The owner of the Workspace to get.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The Workspace that is associated with the specified name and owner.
ExceptionCondition
ItemNotMappedException

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.