This documentation is archived and is not being maintained.

TfsConnection.EnsureAuthenticated Method

Authenticates the connection to Team Foundation Server if it has not been previously authenticated.

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

member EnsureAuthenticated : unit -> unit

This method will use the ICredentialsProvider that is specified in the constructor to prompt for credentials if authentication fails.