corelibraries-devexpress-dot-xtrascheduler-dot-persistentobjectseventargs.md
Gets the persistent objects for which the event occurs.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public IList Objects { get; }
Public ReadOnly Property Objects As IList
| Type | Description |
|---|---|
| IList |
A IList object which is the collection of persistent objects for which the event occurs.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Objects 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-sync-outlook-calendars/CS/SyncWithOutlook/OutlookSynchronizerHelper.cs#L98
for(int i = 0; i < e.Objects.Count; i++) {
Appointment newAppointment = e.Objects[i] as Appointment;
newAppointment.CustomFields[OutlookEntryIDFieldName] = null;
winforms-scheduler-get-appointment-by-source-object/CS/Form1.cs#L51
private void schedulerStorage1_AppointmentsInserted(object sender, PersistentObjectsEventArgs e) {
AppointmentBaseCollection apts = (AppointmentBaseCollection)e.Objects;
foreach (Appointment apt in apts) {
winforms-scheduler-enforce-task-dependencies-gantt-view/CS/GanttRestrictions/Form1.cs#L105
CommitTask();
schedulerDataStorage1.SetAppointmentId(((Appointment)e.Objects[0]), id);
}
winforms-scheduler-linq-to-sql/CS/XtraScheduler_LINQ/Form1.cs#L49
void OnSchedulerStorage1AppointmentsInserted(object sender, PersistentObjectsEventArgs e) {
foreach (Appointment apt in e.Objects) {
DBAppointment dbApt = (DBAppointment)apt.GetSourceObject(this.schedulerStorage1);
winforms-scheduler-create-gantt-chart/CS/GanttExample/Form1.cs#L73
CommitTask();
schedulerDataStorage1.SetAppointmentId(((Appointment)e.Objects[0]), id);
}
winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L133
For i As Integer = 0 To e.Objects.Count - 1
Dim newAppointment As Appointment = TryCast(e.Objects(i), Appointment)
newAppointment.CustomFields(OutlookEntryIDFieldName) = Nothing
winforms-scheduler-get-appointment-by-source-object/VB/Form1.vb#L60
Private Sub schedulerStorage1_AppointmentsInserted(ByVal sender As Object, ByVal e As PersistentObjectsEventArgs)
Dim apts As AppointmentBaseCollection = CType(e.Objects, AppointmentBaseCollection)
For Each apt As Appointment In apts
winforms-scheduler-enforce-task-dependencies-gantt-view/VB/GanttRestrictions/Form1.vb#L90
CommitTask()
schedulerDataStorage1.SetAppointmentId(CType(e.Objects(0), Appointment), id)
End Sub
winforms-scheduler-linq-to-sql/VB/XtraScheduler_LINQ/Form1.vb#L52
Private Sub OnSchedulerStorage1AppointmentsInserted(ByVal sender As Object, ByVal e As PersistentObjectsEventArgs)
For Each apt As Appointment In e.Objects
Dim dbApt As DBAppointment = CType(apt.GetSourceObject(schedulerStorage1), DBAppointment)
winforms-scheduler-create-gantt-chart/VB/GanttExample/Form1.vb#L76
CommitTask()
schedulerDataStorage1.SetAppointmentId((CType(e.Objects(0), Appointment)), id)
End Sub
See Also
PersistentObjectsEventArgs Class