Partager via


TfsTeamProjectCollectionFactory Class

Class factory for TfsTeamProjectCollection objects.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory

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

Syntax

'Déclaration
Public NotInheritable Class TfsTeamProjectCollectionFactory
public static class TfsTeamProjectCollectionFactory
public ref class TfsTeamProjectCollectionFactory abstract sealed
[<AbstractClass>]
[<Sealed>]
type TfsTeamProjectCollectionFactory =  class end
public final class TfsTeamProjectCollectionFactory

Methods

  Name Description
Public methodStatic member GetTeamProjectCollection(Uri) Gets the TfsTeamProjectCollection instance that is associated with the server at the specified URI.
Public methodStatic member GetTeamProjectCollection(RegisteredProjectCollection) Gets the TfsTeamProjectCollection instance that is associated with the specified RegisteredProjectCollection instance.
Public methodStatic member GetTeamProjectCollection(Uri, ICredentialsProvider) Gets the TfsTeamProjectCollection instance that is associated with the server at the specified URI and a fallback credentials provider.
Public methodStatic member GetTeamProjectCollection(RegisteredProjectCollection, ICredentialsProvider) Gets the TfsTeamProjectCollection instance that is associated with the specified RegisteredProjectCollection instance and fallback credentials provider.

Top

Remarks

This class is designed to enable external packages to use the same instance of a TfsTeamProjectCollection object. It caches TfsTeamProjectCollection 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