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.​ICredentialsByHost
Assembly: System.Net.Primitives
Provides the interface for retrieving credentials for a host, port, and authentication type.
Methods
public
NetworkCredential
GetCredential​(string host,
int port,
string authenticationType)
host
The host computer that is authenticating the client.
port
The port on <paramref name="host" /> that the client will communicate with.
authenticationType
The authentication protocol.
Returns A <see cref="T:System.Net.NetworkCredential" /> for the specified host, port, and authentication protocol, or <see langword="null" /> if there are no credentials available for the specified host, port, and authentication protocol.
Returns the credential for the specified host, port, and authentication protocol.