TeamFoundationServerFactory Class

Note: This API is now obsolete.

Class factory for TeamFoundationServer objects. This class is obsolete. Use TfsTeamProjectCollectionFactory instead.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Client.TeamFoundationServerFactory

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
<ObsoleteAttribute("")> _
Public NotInheritable Class TeamFoundationServerFactory
[ObsoleteAttribute("")]
public static class TeamFoundationServerFactory
[ObsoleteAttribute(L"")]
public ref class TeamFoundationServerFactory abstract sealed
[<AbstractClass>]
[<Sealed>]
[<ObsoleteAttribute("")>]
type TeamFoundationServerFactory =  class end
public final class TeamFoundationServerFactory

Methods

  Name Description
Public methodStatic member GetServer(String) Gets the TeamFoundationServer object that is associated with the specified URL.
Public methodStatic member GetServer(Uri) Gets the TeamFoundationServer object that is associated with the specified URI.
Public methodStatic member GetServer(RegisteredProjectCollection) Gets the TeamFoundationServer object that is associated with the specified RegisteredProjectCollection object.
Public methodStatic member GetServer(String, ICredentialsProvider) Gets the TeamFoundationServer object that is associated with the specified URL and credentials provider.
Public methodStatic member GetServer(Uri, ICredentialsProvider) Gets the TeamFoundationServer object that is associated with the specified URI and credentials provider.
Public methodStatic member GetServer(RegisteredProjectCollection, ICredentialsProvider) Gets the TeamFoundationServer object that is associated with the specified RegisteredProjectCollection object.

Top

Remarks

This class is designed to enable external packages to use the same instance of a TeamFoundationServer object. It caches Team Foundation Server objects without regard to credentials. Cached objects are indexed only by server uniform resource identifier (URI).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Client Namespace