Open kerwinxu opened 5 years ago
Thank you for creating the issue! One of our team members will get back to you shortly with additional information.
Thank you for creating the issue! One of our team members will get back to you shortly with additional information.
public interface ContactItem : _ContactItem, ItemEvents_10_Event but _ContactItem interface and ItemEvents_10_Event interface have the same name: Close
public interface _ContactItem { [DispId(61475)] void Close(OlInspectorClose SaveMode); } public interface ItemEvents_10_Event { event ItemEvents_10_CloseEventHandler Close; }
I found the solution , please put the below example into the document .
ItemEvents_10_Event appointmentItemEvent = (ItemEvents_10_Event)outlook_contact; appointmentItemEvent.Close += AppointmentItemEvent_Close;
reference: http://www.outlookcode.com/threads.aspx?forumid=2&messageid=23368
Thanks, @dendeli-msft and thanks @kerwinxu for finding this issue. I will assign this to @linda-editor who is the tech writer for VBA content.
Opened issue in VBA-docs repo: https://github.com/MicrosoftDocs/VBA-Docs/issues/997
🛑 IMPORTANT: You can get your feedback addressed faster if you use the comment section for the article in which you encountered a problem.
Link to article: Tell us where exactly a problem occurs. https://docs.microsoft.com/en-us/office/vba/api/Outlook.ContactItem.Close(method) https://docs.microsoft.com/en-us/office/vba/api/outlook.contactitem.close(even)
Problem: What's wrong with the article?
There's actually no such outlook.contactitem.close(even) in c# (vs 2017 ) . only Close (method) .