![]() If you use Visual Studio to test this code example, you must first add a reference to the Microsoft Outlook 15.0 Object Library component and specify the Outlook variable when you import the namespace. ![]() AutoAcceptMeetingRequests then uses the Respond method with the fNoUI parameter set to true to indicate that a response will be sent automatically to accept the meeting request. In the following code example, AutoAcceptMeetingRequests enumerates through every MeetingItem object to get the associated AppointmentItem. The fNoUI and fAdditionalTextDialog parameters are bool values that determine whether a response will be sent, and whether the user may or may not edit the response, respectively. The Response parameter indicates whether the response is accept, decline, or tentative. The Respond method accepts three parameters. Then use the Respond(OlMeetingResponse, Object, Object) method of the AppointmentItem to notify the meeting organizer whether the meeting has been accepted, declined, or tentatively added to the recipient’s calendar. To respond to a meeting request, use the GetAssociatedAppointment(Boolean) method to obtain the AppointmentItem associated with the meeting request. The following code example is an excerpt from Programming Applications for Microsoft Office Outlook 2007.Ī MeetingItem object represents a request to add an appointment, represented by an AppointmentItem object, to a recipient’s calendar.
0 Comments
Leave a Reply. |