AuthenticationResultToken.GetAccessTokenAsync 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.
Overloads
GetAccessTokenAsync(Task<AuthenticationResult>) | |
GetAccessTokenAsync(Task<AuthenticationResult>, String, String) |
GetAccessTokenAsync(Task<AuthenticationResult>)
public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> GetAccessTokenAsync (System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> result);
static member GetAccessTokenAsync : System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken>
Public Shared Function GetAccessTokenAsync (result As Task(Of AuthenticationResult)) As Task(Of IAccessToken)
Parameters
- result
- Task<AuthenticationResult>
Returns
Applies to
GetAccessTokenAsync(Task<AuthenticationResult>, String, String)
public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> GetAccessTokenAsync (System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> result, string userId = default, string tenantId = default);
static member GetAccessTokenAsync : System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken>
Public Shared Function GetAccessTokenAsync (result As Task(Of AuthenticationResult), Optional userId As String = Nothing, Optional tenantId As String = Nothing) As Task(Of IAccessToken)
Parameters
- result
- Task<AuthenticationResult>
- userId
- String
- tenantId
- String