ICredentialsByHost Interface


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides the interface for retrieving credentials for a host, port, and authentication type.

Namespace:   System.Net
Assembly:  System (in System.dll)

public interface ICredentialsByHost

System_CAPS_pubmethodGetCredential(String, Int32, String)

Returns the credential for the specified host, port, and authentication protocol.

The credentials are used for authentication of requests sent to hosts using the WebClient class, and WebRequest and its derived classes.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.1
Windows Phone
Available since 8.1
Return to top