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

SimpleAccessToken(IAzureAccount, String, String) Constructor

Definition

Create a new access token from the given account and tenant id

public SimpleAccessToken (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, string tenantId, string tokenType = "Bearer");
new Microsoft.Azure.Commands.Profile.Models.SimpleAccessToken : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * string * string -> Microsoft.Azure.Commands.Profile.Models.SimpleAccessToken
Public Sub New (account As IAzureAccount, tenantId As String, Optional tokenType As String = "Bearer")

Parameters

account
IAzureAccount

The account, containing user id, access token information

tenantId
String

The tenant id for the given access token

tokenType
String

The token type for the given token.

Applies to