PersistentObject.CanDelete() Method

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public virtual bool CanDelete()
Public Overridable Function CanDelete As Boolean

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.

Implements

DevExpress.XtraScheduler.Internal.IInternalPersistentObject.CanDelete()
See Also