次の方法で共有


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.Guid

    The instance ID of the Team Project Collection

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo
The WorkspaceInfo object if found; null otherwise

.NET Framework Security

See Also

Reference

Workstation Class

GetLocalWorkspaceInfo Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace