AsyncLocalValueChangedArgs<T> AsyncLocalValueChangedArgs<T> AsyncLocalValueChangedArgs<T> AsyncLocalValueChangedArgs<T> Struct

定義

會提供資料變更資訊給 AsyncLocal<T> 執行個體的的類別,該執行個體會註冊變更告知。The class that provides data change information to AsyncLocal<T> instances that register for change notifications.

generic <typename T>
public value class AsyncLocalValueChangedArgs
public struct AsyncLocalValueChangedArgs<T>
type AsyncLocalValueChangedArgs<'T> = struct
Public Structure AsyncLocalValueChangedArgs(Of T)

類型參數

T

資料的類型。The type of the data.

繼承
AsyncLocalValueChangedArgs<T>AsyncLocalValueChangedArgs<T>AsyncLocalValueChangedArgs<T>AsyncLocalValueChangedArgs<T>

備註

物件AsyncLocal<T>藉由呼叫其AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) 「函式」來具現化時, 會收到變更通知。An AsyncLocal<T> objects receives change notifications when it is instantiated by calling its AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) constructor.

屬性

CurrentValue CurrentValue CurrentValue CurrentValue

取得資料目前的值。Gets the data's current value.

PreviousValue PreviousValue PreviousValue PreviousValue

取得資料先前的值。Gets the data's previous value.

ThreadContextChanged ThreadContextChanged ThreadContextChanged ThreadContextChanged

傳回值,指出值是否會因為執行內容的變更而變更。Returns a value that indicates whether the value changes because of a change of execution context.

適用於