This documentation is archived and is not being maintained.

Workstation::GetLocalWorkspaceInfo Method (Guid, String, String)

Visual Studio 2013

Given a Team Project Collection instance ID, workspace name, and workspace owner, looks in the local workspace cache to find a corresponding WorkspaceInfo object. Display names are accepted for the workspace owner string, but if the (name, owner) combination is ambiguous, a MultipleWorkspacesFoundException may be thrown. Passing RepositoryConstants.AuthenticatedUser for "workspaceOwner" is not valid, since no context exists to translate it into the authorized user.

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

public:
WorkspaceInfo^ GetLocalWorkspaceInfo(
	Guid repositoryGuid, 
	String^ workspaceName, 
	String^ workspaceOwner
)

Parameters

repositoryGuid
Type: System::Guid

The instance ID of the Team Project Collection

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::WorkspaceInfo
The WorkspaceInfo object if found; null otherwise

Show: