ICredentialsByHost 接口

定义

提供用于检索主机、端口和身份验证类型的凭据的接口。Provides the interface for retrieving credentials for a host, port, and authentication type.

public interface class ICredentialsByHost
public interface ICredentialsByHost
type ICredentialsByHost = interface
Public Interface ICredentialsByHost
派生

注解

凭据用于对使用 WebClient 类发送到主机的请求进行身份验证,并 WebRequest 及其派生类。The credentials are used for authentication of requests sent to hosts using the WebClient class, and WebRequest and its derived classes.

方法

GetCredential(String, Int32, String)

返回指定的主机、端口和身份验证协议的凭据。Returns the credential for the specified host, port, and authentication protocol.

适用于