Responds to a meeting request for the AppointmentItem object or a task request for the TaskItem object.
Syntax
object.Respond(IResponse, [fNoUI], [fAdditionalTextDialog])
object Required. An expression that returns an AppointmentItem or TaskItem object.
IResponse Required Long. The response to the request.
For a TaskItem, can be one of the following OlTaskResponse constants: olTaskAccept (2), olTaskAssign(1), olTaskDecline(3), or olTaskSimple(0).
For an AppointmentItem, can be one of the following OlMeetingResponse constants: olMeetingAccepted(3), olMeetingDeclined(4), or olMeetingTentative(2).
fNoUI Optional for AppointmentItem, required for TaskItem. Boolean. True to not display a dialog box; the response is sent automatically. False to display the dialog box for responding.
fAdditionalTextDialog Optional for AppointmentItem, required for TaskItem. Boolean. False to not prompt the user for input; the response is displayed in the inspector for editing. True to prompt the user to either send or send with comments. This argument is valid only if fNoUI is False.
Note The possible values for the optional parameters, fNoUI and fAdditionalTextDialog and the subsequent results are as follows:
fNoUI, fAdditionalTextDialog | Result |
---|---|
True, True | For AppointmentItem and TaskItem:
Response item is returned with no user interface. To send the response, you must call the Send method. |
True, False | For AppointmentItem and TaskItem:
Same result as with True, True. |
False, True | For AppointmentItem:
Prompts user to Send or Edit before sending response. For TaskItem: If Display method has been called, the user prompt appears. Otherwise, the item is sent without prompting and resulting item is nothing. |
False, False | For AppointmentItem:
New response item appears in the user interface, but no prompt. For TaskItem: Does nothing. |