3.2.4.4.10 DeleteSchedule (Opnum 16)

The DeleteSchedule method deletes an existing schedule object.

 [id(10), helpstring("method DeleteSchedule")] HRESULT DeleteSchedule(
   [in] BSTR bstrScheduleName
 );

bstrScheduleName: A string that specifies the name of the schedule object to be deleted.

If this parameter is NULL, E_INVALIDARG MUST be returned.

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0xC1FF0272

WRM_ERR_CAL_SCHEDULE_IN_USE

The selected schedule is currently in use with a calendar. Delete or edit the calendar first.

0xC1FF0271

WRM_ERR_CAL_UNKNOWN_SCHEDULE

The specified schedule object does not exist.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

Additional IWRMCalendar interface methods are specified in section 3.2.4.4.