Provides a way to sincronicamente or de forma assíncrona executar a delegate.
Namespace:
System.ComponentModel
Assembly:
System (em System. dll)
Visual Basic (Declaração)
Public Interface ISynchronizeInvoke
Dim instance As ISynchronizeInvoke
public interface ISynchronizeInvoke
public interface class ISynchronizeInvoke
public interface ISynchronizeInvoke
The ISynchronizeInvoke interface provides synchronous and asynchronous communication between objects about the occurrence of an event.Objetos que implementam esta interface podem receber a notificação de que ocorreu um evento, e eles podem responder às consultas sobre o evento.In this way, Clients can ensure solicitação one that has been Processed before they enviar a solicitação subsequent that Depends on completion of the Primeiro.
The ISynchronizeInvoke class provides two ways to invoke a process:
Asynchronously, by using the BeginInvoke method.BeginInvoke starts a process and then returns immediately.Use EndInvoke to wait until the process started by BeginInvoke completes.
Synchronously, by using the Invoke method.Invoke starts a process, waits until it completes, and then returns.Use Invoke when the control's main thread is different from the calling thread to marshal the call to the proper thread.
Referência