This documentation is archived and is not being maintained.

WorkspaceInfo::GetWorkspace Method (TeamFoundationServer)

Note: This API is now obsolete.

Gets the workspace object that matches this WorkspaceInfo instance.

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

[ObsoleteAttribute(L"The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public:
Workspace^ GetWorkspace(
	TeamFoundationServer^ teamFoundationServer
)

Parameters

teamFoundationServer
Type: Microsoft.TeamFoundation.Client::TeamFoundationServer

The TeamFoundationServer that hosts the workspace.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client::Workspace
The workspace object that is associated with this WorkspaceInfo instance.

Show: