你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AuthenticationResultToken.GetAccessTokenAsync Method

Definition

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

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

userId
String
tenantId
String

Returns

Applies to