HttpClientHandler.Credentials 属性

定义

获取或设置此处理程序使用的身份验证信息。

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

属性值

与该处理程序关联的身份验证凭据。 默认值为 null

属性

注解

如果 属性 UseDefaultCredentials 已设置为 true,则会对此属性产生负面影响,并且此属性将设置为 DefaultCredentials

适用于