共用方式為


HttpChallengeHeaderValue 類別

定義

表示 Proxy-AuthenticationWWW-Authentication HTTP 標頭值中使用的驗證資訊。

public ref class HttpChallengeHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpChallengeHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpChallengeHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpChallengeHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpChallengeHeaderValue : IStringable
function HttpChallengeHeaderValue(scheme, token)
Public NotInheritable Class HttpChallengeHeaderValue
Implements IStringable
繼承
Object Platform::Object IInspectable HttpChallengeHeaderValue
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

HttpChallengeHeaderValue 類別支援IETFRFC 2616中定義的授權、ProxyAuthorizationWWW-AuthenticationProxy-Authentication HTTP 標頭值。

建構函式

HttpChallengeHeaderValue(String)

使用要用於授權的配置,初始化 HttpChallengeHeaderValue 類別的新實例。

HttpChallengeHeaderValue(String, String)

使用要用於授權和SPNEGO權杖的配置,初始化HttpChallengeHeaderValue類別的新實例。

屬性

Parameters

取得認證,其中包含所要求資源之使用者代理程式的驗證資訊。

Scheme

取得要用於驗證的配置。

Token

要與Negotiate通訊協定配置搭配使用的SPNEGO權杖。

方法

Parse(String)

將字串轉換為 HttpChallengeHeaderValue 實例。

ToString()

會傳回代表目前 HttpChallengeHeaderValue 物件的字串。

TryParse(String, HttpChallengeHeaderValue)

判斷字串是否為有效的 HttpChallengeHeaderValue 資訊。

適用於

另請參閱