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 function GetLocalWorkspaceInfo( repositoryGuid : Guid, workspaceName : String, workspaceOwner : String ) : WorkspaceInfo
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.WorkspaceInfoThe WorkspaceInfo object if found; null otherwise
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: