PropertyLockMode 列舉

定義

在共用屬性群組管理員中指定存取共用屬性的模式。Specifies the mode for accessing shared properties in the shared property group manager.

public enum class PropertyLockMode
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum PropertyLockMode
type PropertyLockMode = 
Public Enum PropertyLockMode
繼承
PropertyLockMode
屬性

欄位

Method 1

只要呼叫端的目前方法正在執行,就可鎖定共用屬性群組中所有屬性以供呼叫端獨佔使用。Locks all the properties in the shared property group for exclusive use by the caller, as long as the caller's current method is executing.

注意:在建構函式中建立屬性群組時,請勿使用 PropertyLockMode.Method,因為這可能會導致死結。CAUTION: Do not use PropertyLockMode.Method when creating a property group in a constructor because this can cause a deadlock.

SetGet 0

在取得或設定期間鎖定屬性,以確定在共用屬性上的所有取得或設定作業是不可部分完成的作業。Locks a property during a get or set, assuring that every get or set operation on a shared property is atomic.

適用於