VersionControlServer.GetWorkspace Method (String, String)

Retrieve a workspace with the specified name and owner.

Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in microsoft.teamfoundation.versioncontrol.client.dll)

public Workspace GetWorkspace (
	string workspaceName,
	string workspaceOwner
)
public Workspace GetWorkspace (
	String workspaceName, 
	String workspaceOwner
)
public function GetWorkspace (
	workspaceName : String, 
	workspaceOwner : String
) : Workspace

Parameters

workspaceName

The name of the workspace.

workspaceOwner

The owner of the workspace.

Exception typeCondition

WorkspaceNotFoundException

Thrown if the workspace was not found on the server.

ItemNotMappedException

Thrown if the workspace is not found on the local computer.

The workspace does not have to be on the current computer.

Community Additions

ADD
Show: