HttpClientHandler.Credentials HttpClientHandler.Credentials HttpClientHandler.Credentials HttpClientHandler.Credentials Property

定义

获取或设置此处理程序使用的身份验证信息。Gets or sets authentication information used by this handler.

public:
 property System::Net::ICredentials ^ Credentials { System::Net::ICredentials ^ get(); void set(System::Net::ICredentials ^ value); };
public System.Net.ICredentials Credentials { get; set; }
member this.Credentials : System.Net.ICredentials with get, set
Public Property Credentials As ICredentials

属性值

与该处理程序关联的身份验证凭据。The authentication credentials associated with the handler. 默认值为 nullThe default is null.

适用于