Share via


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)

Syntax

'Declaration
<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")> _
Public Function GetWorkspace ( _
    teamFoundationServer As TeamFoundationServer _
) As Workspace
[ObsoleteAttribute("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
)
[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
)
[<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")>]
member GetWorkspace : 
        teamFoundationServer:TeamFoundationServer -> Workspace
public function GetWorkspace(
    teamFoundationServer : TeamFoundationServer
) : Workspace

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

WorkspaceInfo Class

GetWorkspace Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace