MapiCalendar
Contents
[
Hide
]MapiCalendar class
Inherits: Aspose::Email::Mapi::MapiMessageItemBase
Represents a MAPI calendar item.
This class serves as a wrapper for MapiMessage to simplify the process of handling calendar information from MAPI properties. It provides a more intuitive interface for accessing and manipulating calendar data within the MAPI message.
The following example demonstrates how to get a MapiCalendar object from a MapiMessage .
var msg = MapiMessage.Load("calendar.msg");
// Check if the loaded message is a supported calendar type
if (msg.SupportedType == MapiItemType.Calendar)
{
// Convert the MAPI message to a MapiCalendar object
var mapiCalendar = (MapiCalendar)msg.ToMapiMessageItem();
// Display some calendar info
Console.WriteLine(mapiCalendar.Subject);
Console.WriteLine(mapiCalendar.StartDate);
}
Dim msg = MapiMessage.Load("calendar.msg")
' Check if the loaded message is a supported calendar type
If msg.SupportedType = MapiItemType.Calendar Then
' Convert the MAPI message to a MapiCalendar object
Dim mapiCalendar = DirectCast(msg.ToMapiMessageItem(), MapiCalendar)
' Display some calendar info
Console.WriteLine(mapiCalendar.Subject)
Console.WriteLine(mapiCalendar.StartDate)
End If
Constructors
| Name | Description |
|---|---|
| MapiCalendar (8 overloads) | Initializes a new instance of the MapiCalendar class |
Methods
| Name | Description |
|---|---|
| ConvertToMapiMessage | Converts the task object to mapi message |
| Dispose | Releases all resources. |
| get_AppointmentCounterProposal | Gets a value indicating whether a Meeting Response object is a counter proposal. |
| get_Attachments | Gets the attachment collection. |
| get_Attendees | Gets the attendees |
| get_AuxiliaryFlags | Gets the auxiliary state |
| get_BusyStatus | Gets the busy status |
| get_ClientIntent | Gets the actions the user has taken on this Meeting object. |
| get_EndDate | Gets the end date and time of the event. If the date is not set, default value for DateTime is returned. |
| get_EndDateTimeZone | Gets time zone information that indicates the time zone of the EndDate property |
| get_IsAllDay | Gets a value indicating whether the event is an all-day event |
| get_KeyWords | Gets the categories of the calendar object |
| get_Location | Gets the location of the event |
| get_Organizer | Gets the organizer. |
| get_Recurrence | Gets the recurrence properties |
| get_ReminderDelta | Gets the interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object |
| get_ReminderFileParameter | Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue. |
| get_ReminderSet | Gets a value indicating whether a reminder is set on the object |
| get_Sequence | Gets the sequence number |
| get_StartDate | Gets the start date and time of the event. If the date is not set, default value for DateTime is returned. |
| get_StartDateTimeZone | Gets time zone information that indicates the time zone of the StartDate property |
| get_State | Gets the state of the calendar object |
| get_Uid | Gets the unique identifier |
| GetUnderlyingMessage | Retrieves the underlying MapiMessage object. |
| Save (6 overloads) | Saves calendar object to the file with iCalendar format using te default save options |
| set_AppointmentCounterProposal | Sets a value indicating whether a Meeting Response object is a counter proposal. |
| set_Attendees | Sets the attendees |
| set_AuxiliaryFlags | Sets the auxiliary state |
| set_BusyStatus | Sets the busy status |
| set_ClientIntent | Sets the actions the user has taken on this Meeting object. |
| set_EndDate | Sets the end date and time of the event. If the date is not set, default value for DateTime is returned. |
| set_EndDateTimeZone | Sets time zone information that indicates the time zone of the EndDate property |
| set_IsAllDay | Sets a value indicating whether the event is an all-day event |
| set_KeyWords | Sets the categories of the calendar object |
| set_Location | Sets the location of the event |
| set_Organizer | Sets the organizer. |
| set_Recurrence | Sets the recurrence properties |
| set_ReminderDelta | Sets the interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object |
| set_ReminderFileParameter | Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue. |
| set_ReminderSet | Sets a value indicating whether a reminder is set on the object |
| set_Sequence | Sets the sequence number |
| set_StartDate | Sets the start date and time of the event. If the date is not set, default value for DateTime is returned. |
| set_StartDateTimeZone | Sets time zone information that indicates the time zone of the StartDate property |
| set_State | Sets the state of the calendar object |
| set_Uid | Gets the unique identifier |
| SetStateForced | Sets the state of the calendar object, overriding any default behavior. |
| ToIcalendar | Converts this MapiCalendar into CalendarObject |