Class AppointmentLoadOptions
Contents
[
Hide
]AppointmentLoadOptions class
Represents options for loading an appointment from an ICS (iCalendar) file.
public class AppointmentLoadOptions
Constructors
| Name | Description |
|---|---|
| AppointmentLoadOptions() | Initializes a new instance of the AppointmentLoadOptions class with the default settings. |
Properties
| Name | Description |
|---|---|
| ApplyLocalTZ { get; set; } | Gets or sets whether to convert the start and end times of the event to the local time zone of the computer. The default is false. |
| DetectEncoding { get; set; } | Gets or sets whether to detect the text encoding of the data from its byte order mark (BOM). The default is false. |
| EventIndex { get; set; } | Gets or sets the zero-based index of the event (VEVENT) to load when the calendar contains several. For CalendarReader it is the index of the first event to read. The default is 0. |
| IgnoreSmtpAddressCheck { get; set; } | Gets or sets whether to skip the validation of attendee email addresses. When false, an attendee address that is not a valid SMTP address causes an exception. The default is true. |
Remarks
The AppointmentLoadOptions class provides configurable options for customizing how appointments are loaded from an iCalendar file. These options include detecting the file encoding, applying the local time zone, and ignoring SMTP address validation during the load process.
Examples
This example demonstrates how to configure and use AppointmentLoadOptions to load an appointment with custom settings.
[C#]
// Create an instance of AppointmentLoadOptions with custom settings
var loadOptions = new AppointmentLoadOptions
{
DetectEncoding = true,
ApplyLocalTZ = true,
IgnoreSmtpAddressCheck = true
};
// Load the appointment from the ICS file using the specified load options
var appointment = Appointment.Load("appRequest.ics", loadOptions);
[Visual Basic]
' Create an instance of AppointmentLoadOptions with custom settings
Dim loadOptions As New AppointmentLoadOptions With {
.DetectEncoding = True,
.ApplyLocalTZ = True,
.IgnoreSmtpAddressCheck = True
}
' Load the appointment from the ICS file using the specified load options
Dim appointment As Appointment = Appointment.Load("appRequest.ics", loadOptions)
See Also
- namespace Aspose.Email.Calendar
- assembly Aspose.Email