AuthenticationProperties.SetDateTimeOffset Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Ustawia lub usuwa DateTimeOffset wartość w kolekcji Items .
protected:
void SetDateTimeOffset(System::String ^ key, Nullable<DateTimeOffset> value);
C#
protected void SetDateTimeOffset (string key, DateTimeOffset? value);
member this.SetDateTimeOffset : string * Nullable<DateTimeOffset> -> unit
Protected Sub SetDateTimeOffset (key As String, value As Nullable(Of DateTimeOffset))
- key
- String
Klucz właściwości.
- value
- Nullable<DateTimeOffset>
Wartość, aby ustawić lub null
usunąć właściwość.
Produkt | Wersje |
---|---|
ASP.NET Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |