HttpClientHandler.Credentials 属性

定义

获取或设置此处理程序使用的身份验证信息。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; }
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Net.ICredentials? Credentials { get; set; }
member this.Credentials : System.Net.ICredentials with get, set
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Credentials : System.Net.ICredentials with get, set
Public Property Credentials As ICredentials

属性值

ICredentials

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

属性

适用于