Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Function GetWorkspace ( _
    workspaceName As String, _
    workspaceOwner As String _
) As Workspace
public Workspace GetWorkspace(
    string workspaceName,
    string workspaceOwner
)
public:
Workspace^ GetWorkspace(
    String^ workspaceName, 
    String^ workspaceOwner
)
member GetWorkspace : 
        workspaceName:string * 
        workspaceOwner:string -> Workspace
public function GetWorkspace(
    workspaceName : String, 
    workspaceOwner : String
) : Workspace
Parameters
workspaceName
Type: System.StringThe name of the Workspace to get.
workspaceOwner
Type: System.StringThe 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.
Exceptions
| Exception | Condition | 
|---|---|
| ItemNotMappedException | Thrown if no Workspace is found associated with the specified WorkspaceInfo.  | 
.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.