AMPSExcel.ActiveSub.Application_WorkbookBeforeClose C# (CSharp) Метод

Application_WorkbookBeforeClose() статический приватный Метод

static private Application_WorkbookBeforeClose ( Microsoft.Office.Interop.Excel Wb, bool &Cancel ) : void
Wb Microsoft.Office.Interop.Excel
Cancel bool
Результат void
        void Application_WorkbookBeforeClose(Excel.Workbook Wb, ref bool Cancel)
        {
            if (Wb.Equals(_workbook))
            {
                close();
            }
        }