Skip to main content

PersistentObject.CanDelete() Method

Raises the PersistentObjectStorage<T>.ObjectDeleting event to determine whether the object can be deleted.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

public virtual bool CanDelete()

Returns

Type Description
Boolean

true if the persistent object can be deleted; otherwise, false.

Remarks

If the PersistentObjectStorage<T>.ObjectDeleting is not handled, the CanDelete returns true. If the event is handled, the CanDelete returns false if PersistentObjectCancelEventArgs.Cancel has been set to true within the event handler.

See Also