SchedulerDataStorage.ExportToVCalendar(String) Method

Exports the data in the scheduler to a file in the vCalendar format.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.dll


public void ExportToVCalendar(
    string path
Public Sub ExportToVCalendar(
    path As String


Name Type Description
path String

A String, containing the full path (including the file name and extension) of the file to which the scheduler's data will be exported.


When exporting data from the storage to vCalendar format, make sure that the DevExpress.XtraScheduler.vX.Y.VCalendarExchange.dll assembly is included in the References list of your project.


The vCalendar data exchange is based on specification 1.0.


The following example demonstrates how to export data from a SchedulerDataStorage to the vCalendar format. To do this you should use two overloads of the SchedulerDataStorage.ExportToVCalendar method. Note that these methods allow both exporting data either to a file, or to a stream.

using System.IO;
using DevExpress.XtraScheduler;
// ...

// Save appointments to a file in the vCalendar format.
private string StoreToVCalendarFile(SchedulerDataStorage storage){
    string path = "C:\\Temp\\Appointments.vcs";
    return path;

// Save appointments to a stream in the vCalendar format.
private MemoryStream StoreToVCalendarStream(SchedulerDataStorage storage){
    MemoryStream stream = new MemoryStream();
    return stream;

// ...
See Also