Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICredentialsByHost Interface

 
System_CAPS_noteNote

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

NameDescription
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
Show:
© 2018 Microsoft