Name

ISupportInitialize

Synopsis

Classes should implement this interface if they support the batched initialization of their properties. You would also implement it if you need to know that you are in the designer in your constructor, as DesignMode is not yet valid (because your Site will not have been set).

BeginInit() is called to start batching updates, and EndInit() ends batching and normally causes any update events to be raised.


public interface ISupportInitialize {

// Public Instance Methods

   public void BeginInit();

   public void EndInit();

}

Implemented By

System.Diagnostics.{EventLog, PerformanceCounter}, System.IO.FileSystemWatcher, System.Timers.Timer, System.Windows.Forms.{AxHost, DataGrid, NumericUpDown, StatusBarPanel, TrackBar}

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.