共用方式為


WebTokenRequest 類別

定義

表示對驗證權杖的線上識別提供者要求。

public ref class WebTokenRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory, 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 WebTokenRequest final
/// [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.Security.Authentication.Web.Core.IWebTokenRequestFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebTokenRequest final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory), 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 WebTokenRequest
[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.Security.Authentication.Web.Core.IWebTokenRequestFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebTokenRequest
function WebTokenRequest(provider, scope, clientId, promptType)
Public NotInheritable Class WebTokenRequest
繼承
Object Platform::Object IInspectable WebTokenRequest
屬性

Windows 需求

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

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1511 10586 AppProperties
1703 15063 CorrelationId

建構函式

WebTokenRequest(WebAccountProvider)

使用一個輸入,初始化 WebTokenRequest 類別的新實例。

WebTokenRequest(WebAccountProvider, String)

使用兩個輸入,初始化 WebTokenRequest 類別的新實例。

WebTokenRequest(WebAccountProvider, String, String)

使用三個輸入,初始化 WebTokenRequest 類別的新實例。

WebTokenRequest(WebAccountProvider, String, String, WebTokenRequestPromptType)

使用四個輸入,初始化 WebTokenRequest 類別的新實例。

屬性

AppProperties

取得要求的應用程式屬性。

ClientId

取得發出要求之用戶端的識別碼。

CorrelationId

取得並設定相互關聯識別碼,這是用於追蹤驗證相關要求的唯一識別碼。

PromptType

取得要求的提示類型。

Properties

取得要求的屬性。

Scope

取得要求的範圍。

WebAccountProvider

取得要求的 Web 帳戶提供者。

適用於

另請參閱