Dela via


AccessToken Struct

Definition

Represents an Azure service bearer access token with expiry information.

public struct AccessToken
type AccessToken = struct
Public Structure AccessToken
Inheritance
AccessToken

Constructors

AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>, String)

Creates a new instance of AccessToken using the provided accessToken and expiresOn.

AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>)

Creates a new instance of AccessToken using the provided accessToken and expiresOn.

AccessToken(String, DateTimeOffset)

Creates a new instance of AccessToken using the provided accessToken and expiresOn.

Properties

ExpiresOn

Gets the time when the provided token expires.

RefreshOn

Gets the time when the token should be refreshed.

Token

Get the access token value.

TokenType

Identifies the type of access token.

Methods

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Applies to