AccessToken Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AccessToken(String, DateTimeOffset) |
Creates a new instance of AccessToken using the provided |
AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>) |
Creates a new instance of AccessToken using the provided |
AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>, String) |
Creates a new instance of AccessToken using the provided |
AccessToken(String, DateTimeOffset)
- Source:
- AccessToken.cs
Creates a new instance of AccessToken using the provided accessToken
and expiresOn
.
public AccessToken (string accessToken, DateTimeOffset expiresOn);
new Azure.Core.AccessToken : string * DateTimeOffset -> Azure.Core.AccessToken
Public Sub New (accessToken As String, expiresOn As DateTimeOffset)
Parameters
- accessToken
- String
The bearer access token value.
- expiresOn
- DateTimeOffset
The bearer access token expiry date.
Applies to
AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>)
- Source:
- AccessToken.cs
Creates a new instance of AccessToken using the provided accessToken
and expiresOn
.
public AccessToken (string accessToken, DateTimeOffset expiresOn, DateTimeOffset? refreshOn);
new Azure.Core.AccessToken : string * DateTimeOffset * Nullable<DateTimeOffset> -> Azure.Core.AccessToken
Public Sub New (accessToken As String, expiresOn As DateTimeOffset, refreshOn As Nullable(Of DateTimeOffset))
Parameters
- accessToken
- String
The bearer access token value.
- expiresOn
- DateTimeOffset
The bearer access token expiry date.
- refreshOn
- Nullable<DateTimeOffset>
Specifies the time when the cached token should be proactively refreshed.
Applies to
AccessToken(String, DateTimeOffset, Nullable<DateTimeOffset>, String)
- Source:
- AccessToken.cs
Creates a new instance of AccessToken using the provided accessToken
and expiresOn
.
public AccessToken (string accessToken, DateTimeOffset expiresOn, DateTimeOffset? refreshOn, string tokenType);
new Azure.Core.AccessToken : string * DateTimeOffset * Nullable<DateTimeOffset> * string -> Azure.Core.AccessToken
Public Sub New (accessToken As String, expiresOn As DateTimeOffset, refreshOn As Nullable(Of DateTimeOffset), tokenType As String)
Parameters
- accessToken
- String
The access token value.
- expiresOn
- DateTimeOffset
The access token expiry date.
- refreshOn
- Nullable<DateTimeOffset>
Specifies the time when the cached token should be proactively refreshed.
- tokenType
- String
The access token type.