📚 SAP Business One SDK Help

DeleteHoliday Method
See Also  Example
pIHolidayParams
The key of the holiday to be deleted.

Description

Deletes an existing holiday.

Syntax

Visual Basic
Public Sub DeleteHoliday( _
   ByVal pIHolidayParams As HolidayParams _
) 

Parameters

pIHolidayParams
The key of the holiday to be deleted.

Example

C#Copy Code
SAPbobsCOM.HolidayParams hdParams2 = holidayService.GetDataInterface(HolidayServiceDataInterfaces.hsHolidayParams); 
hdParams2.HolidayCode = "holiday1"; 
 
try 

    holidayService.DeleteHoliday(hdParams2); 

catch (Exception ex) 

    Console.WriteLine(ex.Message); 
}

See Also