This documentation is archived and is not being maintained.

TeamFoundationServer Constructor (RegisteredProjectCollection, ICredentials, ICredentialsProvider)

Initializes a new TeamFoundationServer object that is associated with the server that is described by the specified RegisteredProjectCollection, credentials, and credentials provider.

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

public TeamFoundationServer(
	RegisteredProjectCollection projectCollection,
	ICredentials credentials,
	ICredentialsProvider credentialsProvider
)

Parameters

projectCollection
Type: Microsoft.TeamFoundation.Client.RegisteredProjectCollection

The RegisteredProjectCollection that contains information about the server.

credentials
Type: System.Net.ICredentials

The credentials that are used to authenticate the user.

credentialsProvider
Type: Microsoft.TeamFoundation.Client.ICredentialsProvider

The credentials provider to use if the credentials of the current environment fail.

Show: