AccessTokenResult.TryGetToken(AccessToken) Method

Definition

Determines whether the token request was successful and makes the AccessToken available for use when it is.

public:
 bool TryGetToken([Runtime::InteropServices::Out] Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessToken ^ % accessToken);
public bool TryGetToken (out Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken accessToken);
public bool TryGetToken (out Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken? accessToken);
member this.TryGetToken : AccessToken -> bool
Public Function TryGetToken (ByRef accessToken As AccessToken) As Boolean

Parameters

accessToken
AccessToken

The AccessToken if the request was successful.

Returns

true when the token request is successful; false otherwise.

Applies to