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
'Declaration
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
- 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.
Remarks
Note that the HttpWebRequest.Credentials property requires that the object be either a NetworkCredential or CredentialCache.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.