Class AppointmentMsgSaveOptions
Contents
[
Hide
]AppointmentMsgSaveOptions class
Represents options for saving an appointment or calendar event to a message format.
public sealed class AppointmentMsgSaveOptions : AppointmentSaveOptions
Constructors
| Name | Description |
|---|---|
| AppointmentMsgSaveOptions() | Initializes a new instance of the MsgSaveOptions class |
Properties
| Name | Description |
|---|---|
| SaveFormat { get; } | Gets a save format |
Remarks
This can be useful for converting iCalendar events to Outlook-compatible message formats while preserving important event details.
Examples
This example demonstrates how to load an event from an ICS file and save it as a .msg file using AppointmentMsgSaveOptions.
[C#]
// Load the calendar event from an ICS file
var calendarEvent = Appointment.Load("event.ics");
// Save the event as a .msg file using AppointmentMsgSaveOptions
calendarEvent.Save("event.msg", new AppointmentMsgSaveOptions());
[Visual Basic]
' Load the calendar event from an ICS file
Dim calendarEvent As Appointment = Appointment.Load("event.ics")
' Save the event as a .msg file using AppointmentMsgSaveOptions
calendarEvent.Save("event.msg", New AppointmentMsgSaveOptions())
See Also
- class AppointmentSaveOptions
- namespace Aspose.Email.Calendar
- assembly Aspose.Email