Share via


TfsTeamProjectCollectionFactory.GetTeamProjectCollection Method (String, Boolean, Boolean)

Retrieves the TfsTeamProjectCollection object that is used for a given server.

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

Syntax

'Declaration
Public Shared Function GetTeamProjectCollection ( _
    serverName As String, _
    ensureAuthenticated As Boolean, _
    ensureServerIsLocallyRegistered As Boolean _
) As TfsTeamProjectCollection
public static TfsTeamProjectCollection GetTeamProjectCollection(
    string serverName,
    bool ensureAuthenticated,
    bool ensureServerIsLocallyRegistered
)
public:
static TfsTeamProjectCollection^ GetTeamProjectCollection(
    String^ serverName, 
    bool ensureAuthenticated, 
    bool ensureServerIsLocallyRegistered
)
static member GetTeamProjectCollection : 
        serverName:string * 
        ensureAuthenticated:bool * 
        ensureServerIsLocallyRegistered:bool -> TfsTeamProjectCollection
public static function GetTeamProjectCollection(
    serverName : String, 
    ensureAuthenticated : boolean, 
    ensureServerIsLocallyRegistered : boolean
) : TfsTeamProjectCollection

Parameters

  • serverName
    Type: System.String

    Name of the server to connect to.

  • ensureAuthenticated
    Type: System.Boolean

    Authenticate against the server.

  • ensureServerIsLocallyRegistered
    Type: System.Boolean

    Create a registration entry for this server.

Return Value

Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollection

.NET Framework Security

See Also

Reference

TfsTeamProjectCollectionFactory Class

GetTeamProjectCollection Overload

Microsoft.TeamFoundation.Client Namespace