public NetOffice.OutlookApi.Store GetStoreFromID(string iD) { object[] paramsArray = Invoker.ValidateParamsArray(iD); object returnItem = Invoker.MethodReturn(this, "GetStoreFromID", paramsArray); NetOffice.OutlookApi.Store newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.OutlookApi.Store.LateBindingApiWrapperType) as NetOffice.OutlookApi.Store; return newObject; }
public void StoreContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object store) { if (!Validate("StoreContextMenuDisplay")) { Invoker.ReleaseParamsArray(commandBar, store); return; } NetOffice.OfficeApi.CommandBar newCommandBar = Factory.CreateKnownObjectFromComProxy <NetOffice.OfficeApi.CommandBar>(EventClass, commandBar, NetOffice.OfficeApi.CommandBar.LateBindingApiWrapperType); NetOffice.OutlookApi.Store newStore = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.Store>(EventClass, store, NetOffice.OutlookApi.Store.LateBindingApiWrapperType); object[] paramsArray = new object[2]; paramsArray[0] = newCommandBar; paramsArray[1] = newStore; EventBinding.RaiseCustomEvent("StoreContextMenuDisplay", ref paramsArray); }
public void StoreContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object store) { Delegate[] recipients = _eventBinding.GetEventRecipients("StoreContextMenuDisplay"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(commandBar, store); return; } NetOffice.OfficeApi.CommandBar newCommandBar = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, commandBar) as NetOffice.OfficeApi.CommandBar; NetOffice.OutlookApi.Store newStore = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, store) as NetOffice.OutlookApi.Store; object[] paramsArray = new object[2]; paramsArray[0] = newCommandBar; paramsArray[1] = newStore; _eventBinding.RaiseCustomEvent("StoreContextMenuDisplay", ref paramsArray); }