Udostępnij przez


SqlAuthenticationToken(String, DateTimeOffset) Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy SqlAuthenticationToken.

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

Parametry

accessToken
String

Token dostępu.

expiresOn
DateTimeOffset

Czas wygaśnięcia tokenu.

Wyjątki

Parametr accessToken jest null lub jest pusty.

Dotyczy