ISynchronizeInvoke

ISynchronizeInvoke

System.ComponentModel (system.dll) interface

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



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net