Partilhar via


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