AsyncLocalValueChangedArgs<T>.ThreadContextChanged 屬性

定義

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

public:
 property bool ThreadContextChanged { bool get(); };
public bool ThreadContextChanged { get; }
member this.ThreadContextChanged : bool
Public ReadOnly Property ThreadContextChanged As Boolean

屬性值

true 如果因為執行內容變更而變更值,則為 ;否則為 false

備註

如果屬性明確變更, AsyncLocal<T>.Value 則屬性值為 false

適用於