Export (0) Print
Expand All

VersionControlServer.GetWorkspace Method (String, String)

Gets a workspace with the specified name and owner. The workspace does not need to be on the current computer.

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

public Workspace GetWorkspace(
	string workspaceName,
	string workspaceOwner
)

Parameters

workspaceName
Type: System.String

The name of the workspace.

workspaceOwner
Type: System.String

The owner of the workspace.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Returns a Workspace object that represents the workspace with the specified name and owner. If no workspace is found, an exception occurs.

ExceptionCondition
[WorkspaceNotFoundException]

An exception is thrown if the workspace was not found on the server.

[ItemNotMappedException]

An exception is 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:
© 2014 Microsoft