AppointmentItem Interface

Represents a meeting, a one-time appointment, or a recurring appointment or meeting in the Calendar folder.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)


<GuidAttribute("00063033-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(AppointmentItemClass))> _
Public Interface AppointmentItem _
    Inherits _AppointmentItem, ItemEvents_10_Event
Dim instance As AppointmentItem
public interface AppointmentItem : _AppointmentItem, 


This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _AppointmentItem. For information about the event members of the COM object, see ItemEvents_10_Event.

Use the CreateItem method to create an AppointmentItem object that represents a new appointment.

Use Item (index), where index is the index number of an appointment or a value used to match the default property of an appointment, to return a single AppointmentItem object from a Calendar folder.

You can also return an AppointmentItem object from a MeetingItem object by using the GetAssociatedAppointment method.

When you work with recurring appointment items, you should release any prior references, obtain new references to the recurring appointment item before you access or modify the item, and release these references as soon as you are finished and have saved the changes. This practice applies to the recurring AppointmentItem object, and any Exception or RecurrencePattern object. To release a reference in Visual Basic, set that existing object to Nothing. In C#, explicitly release the memory for that object.

Note that even after you release your reference and attempt to obtain a new reference, if there is still an active reference, held by another add-in or Outlook, to one of the above objects, your new reference will still point to an out-of-date copy of the object. Therefore, it is important that you release your references as soon as you are finished with the recurring appointment.

See Also


AppointmentItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Sendable Item for a Specific Account Based on the Current Folder

How to: Import Appointment XML Data into Outlook Appointment Objects

How to: Create an Appointment That Is an All-Day Event

How to: Create an Appointment That Starts in the Pacific Time Zone and Ends in the Eastern Time Zone

How to: Create a Meeting Request, Add Recipients, and Specify a Location

How to: Check All Responses to a Meeting Request

How to: Automatically Accept a Meeting Request

How to: Use the Select Names Dialog Box to Obtain and Assign Recipients to an Appointment