Class NetworkCredentialExtension
Provides extension methods for System.Net.NetworkCredentials.
public static class NetworkCredentialExtension
- Inheritance
-
objectNetworkCredentialExtension
Methods
ToBasicAuth(NetworkCredential)
Creates a HTTP basic authentication header from the provided credentials.
public static AuthenticationHeaderValue ToBasicAuth(this NetworkCredential credential)
Parameters
credential
NetworkCredential
Returns
- AuthenticationHeaderValue