InstancePersistenceCommand.AutomaticallyAcquiringLock 属性
定义
指示此命令是否可尝试获取对此实例的锁定。Indicates whether the command could attempt to acquire a lock on the instance.
protected public:
virtual property bool AutomaticallyAcquiringLock { bool get(); };
protected internal virtual bool AutomaticallyAcquiringLock { get; }
member this.AutomaticallyAcquiringLock : bool
Protected Friend Overridable ReadOnly Property AutomaticallyAcquiringLock As Boolean
属性值
如果此命令获取对此实例的锁定,则为 true;否则为 false。true if the command acquires a lock on the instance;, otherwise false. 默认值为 false。The default is false.
注解
从此类派生的命令类可以重写此属性,以便将其设置为 true 。The command classes that derive from this class can override this property to set it to true.