Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TeamFoundationServerFactory Class
Collapse the table of content
Expand the table of content

TeamFoundationServerFactory Class

Note: This API is now obsolete.

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

System.Object
  Microsoft.TeamFoundation.Client.TeamFoundationServerFactory

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

[ObsoleteAttribute("")]
public static class TeamFoundationServerFactory

  NameDescription
Public methodStatic memberGetServer(String)Gets the TeamFoundationServer object that is associated with the specified URL.
Public methodStatic memberGetServer(Uri)Gets the TeamFoundationServer object that is associated with the specified URI.
Public methodStatic memberGetServer(RegisteredProjectCollection)Gets the TeamFoundationServer object that is associated with the specified RegisteredProjectCollection object.
Public methodStatic memberGetServer(String, ICredentialsProvider)Gets the TeamFoundationServer object that is associated with the specified URL and credentials provider.
Public methodStatic memberGetServer(Uri, ICredentialsProvider)Gets the TeamFoundationServer object that is associated with the specified URI and credentials provider.
Public methodStatic memberGetServer(RegisteredProjectCollection, ICredentialsProvider)Gets the TeamFoundationServer object that is associated with the specified RegisteredProjectCollection object.
Top

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).

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

Community Additions

ADD
Show:
© 2015 Microsoft