Class AppointmentMsgSaveOptions

AppointmentMsgSaveOptions class

Options for saving an appointment as an Outlook message (MSG).

public sealed class AppointmentMsgSaveOptions : AppointmentSaveOptions

Constructors

NameDescription
AppointmentMsgSaveOptions()Initializes a new instance of the AppointmentMsgSaveOptions class.

Properties

NameDescription
SaveFormat { get; }Gets the format these options save to.

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