Partager via


TeamFoundationServerFactory, classe

Remarque : cette API est maintenant obsolète.

Fabrique de classe des objets de TeamFoundationServer. Cette classe est obsolète. Utilisez TfsTeamProjectCollectionFactory à la place.

Hiérarchie d'héritage

System.Object
  Microsoft.TeamFoundation.Client.TeamFoundationServerFactory

Espace de noms :  Microsoft.TeamFoundation.Client
Assembly :  Microsoft.TeamFoundation.Client (dans Microsoft.TeamFoundation.Client.dll)

Syntaxe

'Déclaration
<ObsoleteAttribute("The TeamFoundationServerFactory class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 or newer Team Foundation Server. In order to talk to a 2005 or 2008 Team Foundation Server use the TfsTeamProjectCollection class. The corresponding factory class for that is the TfsTeamProjectCollectionFactory.")> _
Public NotInheritable Class TeamFoundationServerFactory
[ObsoleteAttribute("The TeamFoundationServerFactory class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 or newer Team Foundation Server. In order to talk to a 2005 or 2008 Team Foundation Server use the TfsTeamProjectCollection class. The corresponding factory class for that is the TfsTeamProjectCollectionFactory.")]
public static class TeamFoundationServerFactory

Méthodes

  Nom Description
Méthode publiqueMembre statique GetServer(String) Obtient l'objet de TeamFoundationServer associé à l'URL spécifiée.
Méthode publiqueMembre statique GetServer(Uri) Obtient l'objet de TeamFoundationServer associé à l'URI spécifié.
Méthode publiqueMembre statique GetServer(RegisteredProjectCollection) Obtient l'objet de TeamFoundationServer associé à l'objet spécifié de RegisteredProjectCollection.
Méthode publiqueMembre statique GetServer(String, ICredentialsProvider) Obtient l'objet de TeamFoundationServer associé à l'URL et le fournisseur d'informations d'identification spécifiés.
Méthode publiqueMembre statique GetServer(Uri, ICredentialsProvider) Obtient l'objet de TeamFoundationServer associé à l'URI et le fournisseur d'informations d'identification spécifiés.
Méthode publiqueMembre statique GetServer(RegisteredProjectCollection, ICredentialsProvider) Obtient l'objet de TeamFoundationServer associé à l'objet spécifié de RegisteredProjectCollection.

Début

Notes

Cette classe est conçue pour permettre aux packages externes pour utiliser la même instance d'un objet de TeamFoundationServer. Il met en cache des objets Team Foundation Server sans tenir compte des informations d'identification. Les objets mis en cache sont indexés uniquement par URI (URI) du serveur.

Sécurité des threads

Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi

Référence

Microsoft.TeamFoundation.Client, espace de noms