다음을 통해 공유


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)

Syntax

‘선언
Function GetCredentials ( _
    uri As Uri, _
    failedCredentials As ICredentials _
) As ICredentials
ICredentials GetCredentials(
    Uri uri,
    ICredentials failedCredentials
)
ICredentials^ GetCredentials(
    Uri^ uri, 
    ICredentials^ failedCredentials
)
abstract GetCredentials : 
        uri:Uri * 
        failedCredentials:ICredentials -> ICredentials 
function GetCredentials(
    uri : Uri, 
    failedCredentials : ICredentials
) : ICredentials

Parameters

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

ICredentialsProvider Interface

Microsoft.TeamFoundation.Client Namespace