AccessTokenResult.TryGetToken(AccessToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.