corelibraries-devexpress-dot-xtrascheduler-dot-persistentobjecteventargs.md
Gets the persistent object (appointment, resource or appointment dependency) for which the event occurs.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public IPersistentObject Object { get; }
Public ReadOnly Property [Object] As IPersistentObject
| Type | Description |
|---|---|
| IPersistentObject |
A IPersistentObject object for which the event occurs.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Object property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-scheduler-gantt-view/CS/dxT183299/Form1.cs#L33
void schedulerStorage_AppointmentInserting(object sender, PersistentObjectCancelEventArgs e) {
this.schedulerControl.Storage.SetAppointmentId(((Appointment)e.Object), nextId++);
}
winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/OutlookSynchronizerHelper.cs#L115
Appointment currentAppointment = e.Object as Appointment;
if(currentAppointment.CustomFields[OutlookEntryIDFieldName] != null && (currentAppointment.Type == AppointmentType.Normal || currentAppointment.Type == AppointmentType.Pattern)) {
winforms-scheduler-linq-to-sql/CS/XtraScheduler_LINQ/Form1.cs#L59
void OnSchedulerStorage1AppointmentDeleting(object sender, PersistentObjectCancelEventArgs e) {
Appointment apt = (Appointment)e.Object;
DBAppointment dbApt = (DBAppointment)apt.GetSourceObject(this.schedulerStorage1);
winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L32
Private Sub schedulerStorage_AppointmentInserting(ByVal sender As Object, ByVal e As PersistentObjectCancelEventArgs)
Me.schedulerControl.Storage.SetAppointmentId((CType(e.Object, Appointment)), nextId)
nextId += 1
winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L154
Dim currentAppointment As Appointment = TryCast(e.Object, Appointment)
If currentAppointment.CustomFields(OutlookEntryIDFieldName) IsNot Nothing AndAlso (currentAppointment.Type = AppointmentType.Normal OrElse currentAppointment.Type = AppointmentType.Pattern) Then
winforms-scheduler-linq-to-sql/VB/XtraScheduler_LINQ/Form1.vb#L64
Private Sub OnSchedulerStorage1AppointmentDeleting(ByVal sender As Object, ByVal e As PersistentObjectCancelEventArgs)
Dim apt As Appointment = CType(e.Object, Appointment)
Dim dbApt As DBAppointment = CType(apt.GetSourceObject(schedulerStorage1), DBAppointment)
See Also
PersistentObjectEventArgs Class