ContextManager.SetContext 方法 (TfsTeamProjectCollection, String)

创建一个并设置团队资源管理器窗口的新 ITeamFoundationContext。

命名空间:  Microsoft.VisualStudio.Services.Integration
程序集:  Microsoft.VisualStudio.Services.Integration(在 Microsoft.VisualStudio.Services.Integration.dll 中)

语法

声明
Public Sub SetContext ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    projectUri As String _
)
public void SetContext(
    TfsTeamProjectCollection teamProjectCollection,
    string projectUri
)

参数

  • projectUri
    类型:System.String
    团队项目完全限定的 URI,可以为空。

实现

ITeamFoundationContextManager.SetContext(TfsTeamProjectCollection, String)

.NET Framework 安全性

请参阅

参考

ContextManager 类

SetContext 重载

Microsoft.VisualStudio.Services.Integration 命名空间