Share via


ContextManager.SetContext, méthode (TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean)

Crée et définit le nouvel ITeamFoundationContext pour la fenêtre Explorateur d'équipes.

Espace de noms :  Microsoft.VisualStudio.Services.Integration
Assembly :  Microsoft.VisualStudio.Services.Integration (dans Microsoft.VisualStudio.Services.Integration.dll)

Syntaxe

'Déclaration
Public Sub SetContext ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    project As String, _
    teamId As Guid, _
    connectAsynchronously As Boolean, _
    reason As ActiveContextChangeReason, _
    promptOnError As Boolean _
)
public void SetContext(
    TfsTeamProjectCollection teamProjectCollection,
    string project,
    Guid teamId,
    bool connectAsynchronously,
    ActiveContextChangeReason reason,
    bool promptOnError
)

Paramètres

  • project
    Type : System.String
    Le nom du projet d'équipe ou l'URI complet, peut être null.
  • teamId
    Type : System.Guid
    ID de l'équipe, peut être Guid.Empty.

Implémentations

ITeamFoundationContextManager2.SetContext(TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean)

Sécurité .NET Framework

Voir aussi

Référence

ContextManager Classe

SetContext, surcharge

Microsoft.VisualStudio.Services.Integration, espace de noms