All docs
V18.2
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
18.1
17.2

IPersistentObject.IsUpdateLocked Property

Gets whether the persistent object is locked while it is being updated.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll

Declaration

[Browsable(false)]
[DXBrowsable(false)]
bool IsUpdateLocked { get; }
<Browsable(False)>
<DXBrowsable(False)>
ReadOnly Property IsUpdateLocked As Boolean

Property Value

Type Description
Boolean

True if the persistent object is locked; otherwise, false.

Remarks

To implement batch update, an internal counter is used. Its initial value is 0. The BeginUpdate method increments the counter. EndUpdate decrements the counter and if its new value is zero, change notifications are enabled. Note that each call to BeginUpdate must be paired with a call to EndUpdate. If a call to BeginUpdate is made but without a subsequent call to EndUpdate or if it is not called because an exception occurred, a persistent object will not be updated. To ensure that EndUpdate is always called even if an exception occurs, enclose method calls in the try...finally statement.

See Also