Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Net.​ICredentials

Assembly: System.Net.Primitives

Provides the base authentication interface for retrieving credentials for Web client authentication.

Methods

GetCredential​(Uri uri, string authType)
uri The <see cref="T:System.Uri" /> that the client is providing authentication for.
authType The type of authentication, as defined in the <see cref="P:System.Net.IAuthenticationModule.AuthenticationType" /> property.
Returns The <see cref="T:System.Net.NetworkCredential" /> that is associated with the specified URI and authentication type, or, if no credentials are available, <see langword="null" /> .
Returns a <see cref="T:System.Net.NetworkCredential" /> object that is associated with the specified URI, and authentication type.