Name

ISynchronizeInvoke

Synopsis

This interface is implemented by components (specifically System.Windows.Forms.Control) that support the synchronous (through Invoke()) or asynchronous (through BeginInvoke() and EndInvoke( )) execution of delegates, allowing the components to marshal the delegates into a particular context.

The implementation in System.Windows.Forms.Control is used to ensure that the execution of the delegate is marshaled onto the thread on which the System.Windows.Forms.Control was created.


public interface ISynchronizeInvoke {

// Public Instance Properties

   public bool InvokeRequired{get; }

// Public Instance Methods

   public IAsyncResult BeginInvoke(Delegate method, object[] args);

   public object EndInvoke(IAsyncResult result);

   public object Invoke(Delegate method, object[] args);

}

Implemented By

System.Windows.Forms.Control

Returned By

System.Diagnostics.EventLog.SynchronizingObject, System.Diagnostics.Process.SynchronizingObject, System.IO.FileSystemWatcher.SynchronizingObject, System.Timers.Timer.SynchronizingObject

Passed To

System.Diagnostics.EventLog.SynchronizingObject, System.Diagnostics.Process.SynchronizingObject, System.IO.FileSystemWatcher.SynchronizingObject, System.Timers.Timer.SynchronizingObject

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.