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 WorkspaceInfo object.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function GetWorkspace ( _
    workspaceInfo As WorkspaceInfo _
) As Workspace
public Workspace GetWorkspace(
    WorkspaceInfo workspaceInfo
)
public:
Workspace^ GetWorkspace(
    WorkspaceInfo^ workspaceInfo
)
member GetWorkspace : 
        workspaceInfo:WorkspaceInfo -> Workspace
public function GetWorkspace(
    workspaceInfo : WorkspaceInfo
) : Workspace
Parameters
workspaceInfo
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfoThe WorkspaceInfo object to get the Workspace for.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Gets the Workspace associated with the specified WorkspaceInfo object.
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.