共用方式為


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

適用於