AppointmentImporter.Import(Stream) Method
Imports appointments from the specified stream.
Namespace: DevExpress.XtraScheduler.Exchange
Assembly: DevExpress.XtraScheduler.v19.1.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object which represents the stream the appointments will be imported from. |
Remarks
This method should be overridden in descendants of the AppointmentImporter class.
If appointments are imported from an MS Outlook calendar, then the Import parameter should be set to Null, as illustrated in the following code snippet:
using DevExpress.XtraScheduler.Exchange;
using DevExpress.XtraScheduler.Outlook;
//...
// Create an importer class instance.
AppointmentImporter importer = schedulerStorage.CreateOutlookImporter();
// Specify a path to the calendar folder.
((ISupportCalendarFolders)importer).CalendarFolderName = "\\\\Personal Folders\\MyCalendar";
// Prepare a progress bar or perform other actions prior to import.
BeforeImport(importer.SourceObjectCount);
// Perform the import.
// Notice the null stream as a parameter to Import method.
try
{
importer.Import(System.IO.Stream.Null);
}
finally
{
AfterImport();
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Import(Stream) method.
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.