SynchronizationAttribute.Locked 屬性

定義

取得或設定一個布林值,表示實作 的Context實作是否SynchronizationAttribute被鎖定。

public:
 virtual property bool Locked { bool get(); void set(bool value); };
public virtual bool Locked { get; set; }
member this.Locked : bool with get, set
Public Overridable Property Locked As Boolean

屬性值

一個布林值,表示實作 的SynchronizationAttribute實作是否Context被鎖定。

備註

當同步 Context 執行緒被鎖定時,只有目前執行的執行緒能存取該執行緒中的 Context物件。

適用於