SqlAuthenticationToken(String, DateTimeOffset) Constructor

Definition

Initializes a new instance of the SqlAuthenticationToken class.

public:
 SqlAuthenticationToken(System::String ^ accessToken, DateTimeOffset expiresOn);
public SqlAuthenticationToken (string accessToken, DateTimeOffset expiresOn);
new Microsoft.Data.SqlClient.SqlAuthenticationToken : string * DateTimeOffset -> Microsoft.Data.SqlClient.SqlAuthenticationToken
Public Sub New (accessToken As String, expiresOn As DateTimeOffset)

Parameters

accessToken
String

The access token.

expiresOn
DateTimeOffset

The token expiration time.

Exceptions

The accessTokenparameter is nullor empty.

Applies to