AppointmentItem 对象

         
多个对象
AppointmentItem
多个对象

代表“日历”文件夹中的约会。AppointmentItem 对象可代表会议、一次性约会、定期约会或会议。

使用 AppointmentItem 对象

使用 CreateItem 方法创建代表新约会的 AppointmentItem 对象。

以下 Visual Basic for Applications 示例返回新约会。

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olAppointmentItem)

使用 Items(index) 从“日历”文件夹返回单个 AppointmentItem 对象。其中 index 是约会的索引号或用于匹配约会默认属性的值。

也可以使用 GetAssociatedAppointment 方法从 MeetingItem 对象返回 AppointmentItem 对象。