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
teamFoundationServer
Type: Microsoft.TeamFoundation.Client.TeamFoundationServerThe TeamFoundationServer that hosts the workspace.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The workspace object that is associated with this WorkspaceInfo instance.
.NET Framework Security
- 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.