windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-367d8195.md
Gets or sets the storage object for the Scheduler control.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[Browsable(false)]
[DefaultValue(null)]
[EditorBrowsable(EditorBrowsableState.Never)]
public SchedulerStorage Storage { get; set; }
<DefaultValue(Nothing)>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Property Storage As SchedulerStorage
| Type | Default | Description |
|---|---|---|
| SchedulerStorage | null |
A SchedulerStorage object that is the data storage for the Scheduler control.
|
The Storage property is used for backward compatibility with earlier versions. Use the SchedulerControl.DataStorage property instead.
Use this property to get or set the SchedulerDataStorage. The data storage contains appointments, resources and appointment dependencies data for the scheduler.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Storage 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-display-custom-tooltips/CS/Form1.cs#L79
private void SetupSampleResource() {
SchedulerStorage schedulerStorage = schedulerControl1.Storage;
Resource res = schedulerStorage.CreateResource(0);
edStatus.Storage = control.Storage;
edLabel.Storage = control.Storage;
winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/Form1.cs#L30
comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths());
synchronizerHelper = new OutlookSynchronizerHelper(schedulerControl1.Storage, "", OutlookEntryIDFieldName);
checkEdit1.Checked = true;
winforms-scheduler-find-free-time-intervals/CS/FreeTimeIntervals/Form1.cs#L47
private TimeInterval FindInterval(TimeInterval clientInterval, TimeSpan duration) {
FreeTimeCalculator calculator = new FreeTimeCalculator(schedulerControl1.Storage);
// Set a handler for the IntervalFound event.
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L55
this.control = control;
this.storage = control.Storage;
' Correct the text editor selection, which may result in overwriting the first typed character.
Dim storage As SchedulerStorage = control.Storage
If storage.Appointments.IsNewAppointment(appointment) Then
winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L67
Private Sub SetupSampleResource()
Dim schedulerStorage As SchedulerStorage = schedulerControl1.Storage
Dim res As Resource = schedulerStorage.CreateResource(0)
edStatus.Storage = control.Storage
edLabel.Storage = control.Storage
winforms-scheduler-bind-sql-server-customize-update-delete-insert-queries/VB/Form1.vb#L29
' 2) Adjust mappings
Dim schedulerStorage As SchedulerStorage = schedulerControl1.Storage
Dim appointmentMappings As AppointmentMappingInfo = schedulerStorage.Appointments.Mappings
winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/Form1.vb#L32
comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths())
synchronizerHelper = New OutlookSynchronizerHelper(schedulerControl1.Storage, "", OutlookEntryIDFieldName)
checkEdit1.Checked = True
See Also