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

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