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

获取发出请求的客户端的 ID。

CorrelationId

获取并设置相关 ID,这是用于跟踪身份验证相关请求的唯一标识符。

PromptType

获取请求的提示类型。

Properties

获取请求的属性。

Scope

获取请求的范围。

WebAccountProvider

获取请求的 Web 帐户提供程序。

适用于

另请参阅