Workstation.GetLocalWorkspaceInfo Method (Guid, String, String)
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)
Syntax
'Declaration
Public Function GetLocalWorkspaceInfo ( _
repositoryGuid As Guid, _
workspaceName As String, _
workspaceOwner As String _
) As WorkspaceInfo
public WorkspaceInfo GetLocalWorkspaceInfo(
Guid repositoryGuid,
string workspaceName,
string workspaceOwner
)
public:
WorkspaceInfo^ GetLocalWorkspaceInfo(
Guid repositoryGuid,
String^ workspaceName,
String^ workspaceOwner
)
member GetLocalWorkspaceInfo :
repositoryGuid:Guid *
workspaceName:string *
workspaceOwner:string -> WorkspaceInfo
public function GetLocalWorkspaceInfo(
repositoryGuid : Guid,
workspaceName : String,
workspaceOwner : String
) : WorkspaceInfo
Parameters
repositoryGuid
Type: System.GuidThe instance ID of the Team Project Collection
workspaceName
Type: System.StringThe name of the workspace
workspaceOwner
Type: System.StringThe owner of the workspace
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo
The WorkspaceInfo object if found; null otherwise
.NET Framework Security
- 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.