SystemEvents.KillTimer Method (IntPtr)

 

Terminates the timer specified by the given id.

Namespace:   Microsoft.Win32
Assembly:  System (in System.dll)

public static void KillTimer(
	IntPtr timerId
)

Parameters

timerId
Type: System.IntPtr

The ID of the timer to terminate.

Exception Condition
InvalidOperationException

System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications.

ExternalException

The attempt to create a system events window thread did not succeed, or the attempt to terminate the timer did not succeed.

.NET Framework
Available since 1.1
Return to top
Show: