VersionControlServer.GetWorkspace Method (WorkspaceInfo)
Takes a WorkspaceInfo object (which refers to a particular workspace, but does not give you full access to that workspace) and returns a Workspace object (which has the full suite of methods to operate on that workspace).
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
- Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo
A workspace Information object. These objects come from the workstation class, which loads them from the cache on the local machine. Therefore, working with the workstation class to get a WorkspaceInfo object can sometimes avoid a round trip to the server.
Return ValueType: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Returns the Workspace object that corresponds to the passed WorkspaceInfo object. If no workspace is found, an exception occurs.
- 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.