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.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 Workspace GetWorkspace(
	string workspaceName,
	string workspaceOwner
)

Parameters

workspaceName
Type: System.String

The name of the Workspace to get.

workspaceOwner
Type: System.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.

Show:
© 2015 Microsoft