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)

public static TfsTeamProjectCollection GetTeamProjectCollection(
	string serverName,
	bool ensureAuthenticated,
	bool ensureServerIsLocallyRegistered
)

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.

Show: