PropertyLockMode PropertyLockMode PropertyLockMode PropertyLockMode Enum

定义

指定在共享的属性组管理器中访问共享属性的模式。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
继承
PropertyLockModePropertyLockModePropertyLockModePropertyLockMode
属性

字段

Method Method Method 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 SetGet SetGet SetGet 0

在获取或设置期间锁定一个属性,确保对共享属性的每一获取或设置操作都是原子操作。Locks a property during a get or set, assuring that every get or set operation on a shared property is atomic.

适用于