public void AttachmentContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object attachments)
        {
            if (!Validate("AttachmentContextMenuDisplay"))
            {
                Invoker.ReleaseParamsArray(commandBar, attachments);
                return;
            }

            NetOffice.OfficeApi.CommandBar           newCommandBar  = Factory.CreateKnownObjectFromComProxy <NetOffice.OfficeApi.CommandBar>(EventClass, commandBar, NetOffice.OfficeApi.CommandBar.LateBindingApiWrapperType);
            NetOffice.OutlookApi.AttachmentSelection newAttachments = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.AttachmentSelection>(EventClass, attachments, NetOffice.OutlookApi.AttachmentSelection.LateBindingApiWrapperType);
            object[] paramsArray = new object[2];
            paramsArray[0] = newCommandBar;
            paramsArray[1] = newAttachments;
            EventBinding.RaiseCustomEvent("AttachmentContextMenuDisplay", ref paramsArray);
        }
        public void AttachmentContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object attachments)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("AttachmentContextMenuDisplay");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(commandBar, attachments);
                return;
            }

            NetOffice.OfficeApi.CommandBar           newCommandBar  = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, commandBar) as NetOffice.OfficeApi.CommandBar;
            NetOffice.OutlookApi.AttachmentSelection newAttachments = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, attachments) as NetOffice.OutlookApi.AttachmentSelection;
            object[] paramsArray = new object[2];
            paramsArray[0] = newCommandBar;
            paramsArray[1] = newAttachments;
            _eventBinding.RaiseCustomEvent("AttachmentContextMenuDisplay", ref paramsArray);
        }