SqlAuthenticationToken(String, DateTimeOffset) Konstruktor
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
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.