SystemEvents.CreateTimer(Int32) Método

Definição

Cria um novo temporizador de janela associado à janela de eventos do sistema.Creates a new window timer associated with the system events window.

public:
 static IntPtr CreateTimer(int interval);
public static IntPtr CreateTimer (int interval);
static member CreateTimer : int -> nativeint
Public Shared Function CreateTimer (interval As Integer) As IntPtr

Parâmetros

interval
Int32

Especifica o intervalo entre as notificações de temporizador, em milissegundos.Specifies the interval between timer notifications, in milliseconds.

Retornos

IntPtr

A ID do novo temporizador.The ID of the new timer.

Exceções

O intervalo é menor ou igual a zero.The interval is less than or equal to zero.

Não há suporte para notificações de eventos do sistema no contexto atual.System event notifications are not supported under the current context. Os processos do servidor, por exemplo, podem não dar suporte a notificações de eventos globais do sistema.Server processes, for example, might not support global system event notifications.

A tentativa de criar um thread de janela de eventos do sistema não foi bem-sucedida ou a tentativa de criar o timer não teve êxito.The attempt to create a system events window thread did not succeed, or the attempt to create the timer did not succeed.

Aplica-se a