Leggere in inglese

Condividi tramite


AsyncLocalValueChangedArgs<T> Struct

Definizione

Classe che fornisce le informazioni di modifica dei dati alle istanze di AsyncLocal<T> registrate per le notifiche di modifica.

C#
public struct AsyncLocalValueChangedArgs<T>
C#
public readonly struct AsyncLocalValueChangedArgs<T>

Parametri di tipo

T

Tipo di dati.

Ereditarietà
AsyncLocalValueChangedArgs<T>

Commenti

Un AsyncLocal<T> oggetto riceve notifiche di modifica quando viene creata un'istanza chiamando il relativo AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) costruttore.

Proprietà

CurrentValue

Ottiene il valore corrente dei dati.

PreviousValue

Ottiene il valore precedente dei dati.

ThreadContextChanged

Restituisce un valore che indica se il valore cambia a seguito di una modifica del contesto di esecuzione.

Si applica a

Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0