public void OptionsPagesAdd([In, MarshalAs(UnmanagedType.IDispatch)] object pages)
 {
     if (!Validate("OptionsPagesAdd"))
     {
         Invoker.ReleaseParamsArray(pages);
         return;
     }
     NetOffice.OutlookApi.PropertyPages newPages = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.PropertyPages>(EventClass, pages, NetOffice.OutlookApi.PropertyPages.LateBindingApiWrapperType);
     object[] paramsArray = new object[1];
     paramsArray[0] = newPages;
     EventBinding.RaiseCustomEvent("OptionsPagesAdd", ref paramsArray);
 }
        public void OptionsPagesAdd([In, MarshalAs(UnmanagedType.IDispatch)] object pages)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("OptionsPagesAdd");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(pages);
                return;
            }

            NetOffice.OutlookApi.PropertyPages newPages = Factory.CreateObjectFromComProxy(_eventClass, pages) as NetOffice.OutlookApi.PropertyPages;
            object[] paramsArray = new object[1];
            paramsArray[0] = newPages;
            _eventBinding.RaiseCustomEvent("OptionsPagesAdd", ref paramsArray);
        }
Example #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pages"></param>
        /// <param name="folder"></param>
        public void OptionsPagesAdd([In, MarshalAs(UnmanagedType.IDispatch)] object pages, [In, MarshalAs(UnmanagedType.IDispatch)] object folder)
        {
            if (!Validate("OptionsPagesAdd"))
            {
                Invoker.ReleaseParamsArray(pages, folder);
                return;
            }

            NetOffice.OutlookApi.PropertyPages newPages  = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.PropertyPages>(EventClass, pages, typeof(NetOffice.OutlookApi.PropertyPages));
            NetOffice.OutlookApi.MAPIFolder    newFolder = Factory.CreateEventArgumentObjectFromComProxy(EventClass, folder) as NetOffice.OutlookApi.MAPIFolder;

            object[] paramsArray = new object[2];
            paramsArray[0] = newPages;
            paramsArray[1] = newFolder;
            EventBinding.RaiseCustomEvent("OptionsPagesAdd", ref paramsArray);
        }