MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

outlook.contactitem.close(even) #1416

Open kerwinxu opened 5 years ago

kerwinxu commented 5 years ago

🛑 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) .

welcome[bot] commented 5 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information.

kerwinxu commented 5 years ago

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

lindalu-MSFT commented 5 years ago

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.

lindalu-MSFT commented 5 years ago

Opened issue in VBA-docs repo: https://github.com/MicrosoftDocs/VBA-Docs/issues/997