AccessTokenResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AccessTokenResult(AccessTokenResultStatus, AccessToken, String)
警告
Use the AccessTokenResult(AccessTokenResultStatus, AccessToken, string, InteractiveRequestOptions)
初始化 AccessTokenResult 的新執行個體。
public:
AccessTokenResult(Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenResultStatus status, Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessToken ^ token, System::String ^ redirectUrl);
public AccessTokenResult (Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus status, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken token, string redirectUrl);
[System.Obsolete("Use the AccessTokenResult(AccessTokenResultStatus, AccessToken, string, InteractiveRequestOptions)")]
public AccessTokenResult (Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus status, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken token, string redirectUrl);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken * string -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult
[<System.Obsolete("Use the AccessTokenResult(AccessTokenResultStatus, AccessToken, string, InteractiveRequestOptions)")>]
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken * string -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult
Public Sub New (status As AccessTokenResultStatus, token As AccessToken, redirectUrl As String)
參數
- status
- AccessTokenResultStatus
結果的狀態。
- token
- AccessToken
AccessToken如果成功,則為 。
- redirectUrl
- String
要移至 以布建權杖的重新導向 URI。
- 屬性
適用於
AccessTokenResult(AccessTokenResultStatus, AccessToken, String, InteractiveRequestOptions)
初始化 AccessTokenResult 的新執行個體。
public AccessTokenResult (Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus status, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken token, string interactiveRequestUrl, Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions interactiveRequest);
public AccessTokenResult (Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus status, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken token, string? interactiveRequestUrl, Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions? interactiveRequest);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken * string * Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult
Public Sub New (status As AccessTokenResultStatus, token As AccessToken, interactiveRequestUrl As String, interactiveRequest As InteractiveRequestOptions)
參數
- status
- AccessTokenResultStatus
結果的狀態。
- token
- AccessToken
AccessToken如果成功,則為 。
- interactiveRequestUrl
- String
要移至 以布建 NavigateToLogin(NavigationManager, String, InteractiveRequestOptions) 權杖的重新導向 URI。
- interactiveRequest
- InteractiveRequestOptions
, InteractiveRequestOptions 包含互動式驗證的參數。