Appointment Class

Represents a calendar to an e-mail.
Inheritance Hierarchy
SystemObject
  Aspose.Email.CalendarAppointment

Namespace:  Aspose.Email.Calendar
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.9
Syntax
public class Appointment

The Appointment type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAttachments
Gets the collection of attachments of appointment.
Public propertyAttendees
Gets or sets the attendees.
Public propertyCreatedDate
Gets or sets the date and time that calendar information was created.
Public propertyDescription
Gets or sets the description.
Public propertyEndDate
Gets or sets the end date.
Public propertyEndTimeZone
End time zone
Public propertyFlags
Gets or sets appointment flags.
Public propertyIsDescriptionHtml
Gets or sets value which indicates if description is in HTML format
Public propertyLastModifiedDate
Gets or sets the date and time that calendar information was last revised.
Public propertyLocation
Gets or sets the location.
Public propertyMethodType
Gets or sets the iCalendar object method type associated with the calendar object.
Public propertyMicrosoftBusyStatus
Specifies the BUSY status of an appointment.
Public propertyMicrosoftIntendedStatus
Specifies the INTENDED status of an appointment.
Public propertyOptionalAttendees
Gets the optional attendees.
Public propertyOrganizer
Gets or sets the organizer.
Public propertyRecurrence
Gets or sets the recurrence pattern.
Public propertyReminders
Contains collection of AppointmentReminder AppointmentReminder objects.
Public propertySequenceId
Gets the sequence id.
Public propertyStartDate
Gets or sets the start date.
Public propertyStartTimeZone
Start time zone
Public propertyStatus
Gets or sets the overall status or confirmation for the object.
Public propertySummary
Gets or sets the summary.
Public propertyTransparency
Specifies whether or not this appointment is intended to be visible in availability searches.
Public propertyUniqueId
Gets or sets a string value that contains the GUID for the calendar item. In MS Exchange this is PidLidGlobalObjectId mapi property.
Methods
  NameDescription
Public methodCancelAppointment
Cancels the appointment.
Public methodCancelAppointment(Int32)
Cancels the appointment.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAppointmentHtml
Gets the calendar HTML.
Public methodGetAppointmentText
Gets the calendar text.
Public methodGetAppointmentText(AppointmentFormattingOptions)
Gets the calendar text.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberLoad(Stream)
Loads Appointment from the stream
Public methodStatic memberLoad(String)
Loads Appointment from the file. Supported file formats: iCalendar
Public methodStatic memberLoad(Stream, AppointmentLoadOptions)
Loads Appointment from the stream
Public methodStatic memberLoad(Stream, Boolean)
Loads Appointment from the stream
Public methodStatic memberLoad(String, AppointmentLoadOptions)
Loads Appointment from the file. Supported file formats: iCalendar A file path.Represents appointment load optionsAppointmentLoadOptions.

Return Value

Type: 
A read Appointment.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRequestApointment
Requests the apointment.
Public methodRequestApointment(Int32)
Requests the apointment.
Public methodResetTimeZone
Set local time zone
Public methodSave(Stream)
Saves appointment to the file with iCalendar format using te default save options
Public methodSave(String)
Saves appointment to the file with iCalendar format using te default save options
Public methodSave(Stream, AppointmentSaveFormat)
Saves appointment to the stream with specified format using te default save options
Public methodSave(Stream, AppointmentSaveOptions)
Saves appointment to the stream with specified save options
Public methodSave(String, AppointmentSaveFormat)
Saves appointment to the file with specified format using te default save options
Public methodSave(String, AppointmentSaveOptions)
Saves appointment to the file with specified save options
Public methodSetTimeZone
Set time zone
Public methodToString (Inherited from Object.)
Public methodUpdateAppointment
Updates the appointment.
Public methodUpdateAppointment(Int32)
Updates the appointment.
Examples

This example demonstrates how to add a calendar to an E-Mail message.

[C#]

MailMessage msg = new MailMessage();

//attendees for the event
MailAddressCollection attendees = new MailAddressCollection();
attendees.Add(new MailAddress("person1@domain.com"));
attendees.Add(new MailAddress("person2@domain.com"));
attendees.Add(new MailAddress("person3@domain.com"));

//create appointment
Appointment app = new Appointment("Room 112",new DateTime(2006,7,17,13,0,0),new DateTime(2006,7,17,14,0,0),new MailAddress("somebody@domain.com"), attendees );
cal.Summary = "Release Meetting";
cal.Description = "Discuss for the next release";

//add calendar to the message
msg.AddAlternateView(app.RequestApointment());

//send the email message
SmtpClient smtp= new SmtpClient("smtp.server.com", 25, "user", "password");
smtp.Send(msg);

[Visual Basic]

Dim msg As MailMessage =  New MailMessage() 

'attendees for the event
Dim attendees As MailAddressCollection =  New MailAddressCollection() 
attendees.Add(New MailAddress("person1@domain.com"))
attendees.Add(New MailAddress("person2@domain.com"))
attendees.Add(New MailAddress("person3@domain.com"))

'create calendar
Dim cal As Appointment =  New Appointment("Room 112",New DateTime(2006,7,17,13,0,0),New DateTime(2006,7,17,14,0,0),New MailAddress("somebody@domain.com"),attendees) 
cal.Summary = "Release Meetting"
cal.Description = "Discuss for the next release"

'add calendar to the message
msg.AddAlternateView(app.RequestApointment())
See Also