This documentation is archived and is not being maintained.
VersionControlServer.GetWorkspace Method (WorkspaceInfo)
Visual Studio 2013
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)
'Declaration Public Function GetWorkspace ( _ workspaceInfo As WorkspaceInfo _ ) As Workspace
Parameters
- workspaceInfo
- Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo
The WorkspaceInfo object to get the Workspace for.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceGets the Workspace associated with the specified WorkspaceInfo object.
| Exception | Condition |
|---|---|
| ItemNotMappedException | Thrown if no Workspace is found associated with the specified WorkspaceInfo. |
- 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: