Ejemplo n.º 1
0
        public NetOffice.OutlookApi.NavigationFolder Add(NetOffice.OutlookApi.MAPIFolder folder)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(folder);
            object   returnItem  = Invoker.MethodReturn(this, "Add", paramsArray);

            NetOffice.OutlookApi.NavigationFolder newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.OutlookApi.NavigationFolder.LateBindingApiWrapperType) as NetOffice.OutlookApi.NavigationFolder;
            return(newObject);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="navigationFolder"></param>
        public void NavigationFolderAdd([In, MarshalAs(UnmanagedType.IDispatch)] object navigationFolder)
        {
            if (!Validate("NavigationFolderAdd"))
            {
                Invoker.ReleaseParamsArray(navigationFolder);
                return;
            }

            NetOffice.OutlookApi.NavigationFolder newNavigationFolder = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.NavigationFolder>(EventClass, navigationFolder, typeof(NetOffice.OutlookApi.NavigationFolder));
            object[] paramsArray = new object[1];
            paramsArray[0] = newNavigationFolder;
            EventBinding.RaiseCustomEvent("NavigationFolderAdd", ref paramsArray);
        }
Ejemplo n.º 3
0
        public void NavigationFolderAdd([In, MarshalAs(UnmanagedType.IDispatch)] object navigationFolder)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("NavigationFolderAdd");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(navigationFolder);
                return;
            }

            NetOffice.OutlookApi.NavigationFolder newNavigationFolder = Factory.CreateObjectFromComProxy(_eventClass, navigationFolder) as NetOffice.OutlookApi.NavigationFolder;
            object[] paramsArray = new object[1];
            paramsArray[0] = newNavigationFolder;
            _eventBinding.RaiseCustomEvent("NavigationFolderAdd", ref paramsArray);
        }
Ejemplo n.º 4
0
 public void Remove(NetOffice.OutlookApi.NavigationFolder removableFolder)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(removableFolder);
     Invoker.Method(this, "Remove", paramsArray);
 }
 public void Remove(NetOffice.OutlookApi.NavigationFolder removableFolder)
 {
     Factory.ExecuteMethod(this, "Remove", removableFolder);
 }