共用方式為


WorkspaceInfo.GetWorkspace 方法 (TeamFoundationServer)

注意:這個應用程式開發介面現在已經過時。

取得工作區物件符合此 WorkspaceInfo 執行個體。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
<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
)

參數

傳回值

型別:Microsoft.TeamFoundation.VersionControl.Client.Workspace
與此 WorkspaceInfo 執行個體的工作區物件。

.NET Framework 安全性

請參閱

參考

WorkspaceInfo 類別

GetWorkspace 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間