Export (0) Print
Expand All

ICredentialsProvider.GetCredentials Method

Gets the credentials when the current credentials of the component failed to authenticate with the server.

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

ICredentials GetCredentials(
	Uri uri,
	ICredentials failedCredentials
)

Parameters

uri
Type: System.Uri

The URI of the server.

failedCredentials
Type: System.Net.ICredentials

The credentials that failed to authenticate.

Return Value

Type: System.Net.ICredentials
The credentials to use to authenticate with the server.

Note that the HttpWebRequest.Credentials property requires that the object be either a NetworkCredential or CredentialCache.

Show:
© 2015 Microsoft