Click or drag to resize
Task Scheduler Managed Class Library

ITaskHandler Interface

Defines the methods that are called by the Task Scheduler service to manage a COM handler.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[ComImportAttribute]
[GuidAttribute("839D7762-5121-4009-9234-4F0D19394F04")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITaskHandler
Request Example

The ITaskHandler type exposes the following members.

Methods
 NameDescription
Public methodPause Called to pause the COM handler. This method is optional and should only be implemented to give the Task Scheduler the ability to pause and restart the handler.
Public methodResume Called to resume the COM handler. This method is optional and should only be implemented to give the Task Scheduler the ability to resume the handler.
Public methodStart Called to start the COM handler. This method must be implemented by the handler.
Public methodStop Called to stop the COM handler. This method must be implemented by the handler.
Top
Remarks
This interface must be implemented for a task to perform a COM handler action. When the Task Scheduler performs a COM handler action, it creates and activates the handler and calls the methods of this interface as needed. For information on specifying a COM handler action, see the ComHandlerAction class.
See Also