Returns a System.Net.NetworkCredential object that is associated with the specified URI, and authentication type.
- uri
The Uri that the client is providing authentication for.
- authType
The type of authentication, as defined in the IAuthenticationModule.AuthenticationType property.
![]()
The System.Net.NetworkCredential that is associated with the specified URI and authentication type, or, if no credentials are available, null.
The ICredentials.GetCredential(Uri, string) method returns a System.Net.NetworkCredential instance that contains the credentials that are associated with the specified URI and authorization scheme. When no credentials are available, the ICredentials.GetCredential(Uri, string) method returns null.