AsyncLocalValueChangedArgs<T> 結構

定義

會提供資料變更資訊給 AsyncLocal<T> 執行個體的的類別,該執行個體會註冊變更告知。

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

類型參數

T

資料的類型。

繼承
AsyncLocalValueChangedArgs<T>

備註

AsyncLocal<T>當物件藉由呼叫其 AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) 建構函式來具現化時,物件會收到變更通知。

屬性

CurrentValue

取得資料目前的值。

PreviousValue

取得資料先前的值。

ThreadContextChanged

傳回值,指出值是否會因為執行內容的變更而變更。

適用於