SqlAuthenticationToken(String, DateTimeOffset) Konstruktor

Definicja

Konstruuj z wartościami dla wszystkich właściwości.

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)

Parametry

accessToken
String

Ciąg tokenu.

expiresOn
DateTimeOffset

Czas wygaśnięcia tokenu.

Wyjątki

Parametr accessToken jest null lub jest pusty.

Dotyczy