共用方式為


ContextManager.SetContext 方法 (TfsTeamProjectCollection, String, Guid)

建立和設定 Team 總管視窗的新 ITeamFoundationContext。

命名空間:  Microsoft.VisualStudio.Services.Integration
組件:  Microsoft.VisualStudio.Services.Integration (在 Microsoft.VisualStudio.Services.Integration.dll 中)

語法

'宣告
Public Sub SetContext ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    projectUri As String, _
    teamId As Guid _
)
public void SetContext(
    TfsTeamProjectCollection teamProjectCollection,
    string projectUri,
    Guid teamId
)

參數

  • projectUri
    類型:System.String
    Team 專案完整 URI,則為空的。
  • teamId
    類型:System.Guid
    小組的 ID,可能是 Guid.Empty。

實作

ITeamFoundationContextManager.SetContext(TfsTeamProjectCollection, String, Guid)

.NET Framework 安全性

請參閱

參考

ContextManager 類別

SetContext 多載

Microsoft.VisualStudio.Services.Integration 命名空間