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

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

            NetOffice.OfficeApi.CommandBar newCommandBar = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, commandBar) as NetOffice.OfficeApi.CommandBar;
            NetOffice.OutlookApi.Folder    newFolder     = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, folder) as NetOffice.OutlookApi.Folder;
            object[] paramsArray = new object[2];
            paramsArray[0] = newCommandBar;
            paramsArray[1] = newFolder;
            _eventBinding.RaiseCustomEvent("FolderContextMenuDisplay", ref paramsArray);
        }