EventHandlerList

EventHandlerList disposable

System.ComponentModel (system.dll) sealed class

This class encapsulates a set of event handlers. You can use AddHandler() and RemoveHandler( ) to manipulate the list of delegates bound to particular objects, and you can retrieve the delegate bound to a particular object by using the Item property (this is the indexer for the class).

Note that this class does not implement any of the standard collection interfaces.

 public sealed class  EventHandlerList  : IDisposable {  // Public Constructors  public  EventHandlerList  ();  // Public Instance Properties  public Delegate  this  {set; get; }  // Public Instance Methods  public void  AddHandler  (object  key  , Delegate  value  );    public void  Dispose  ();  // implements IDisposable  public void  RemoveHandler  (object  key  , Delegate  value  ); } 

Returned By

Component.Events , MarshalByValueComponent.Events



. 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