Export (0) Print
Expand All

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

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public Workspace GetWorkspace(
	WorkspaceInfo workspaceInfo
)

Parameters

workspaceInfo
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 Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Returns the Workspace object that corresponds to the passed WorkspaceInfo object. If no workspace is found, an exception occurs.

Community Additions

ADD
Show:
© 2015 Microsoft