BaseControlArray.ISupportInitialize.BeginInit 方法


開始控制項的初始化。Begins the initialization of the control.

 virtual void BeginInit() = System::ComponentModel::ISupportInitialize::BeginInit;
void ISupportInitialize.BeginInit ();
abstract member BeginInit : unit -> unit
override this.BeginInit : unit -> unit
Sub BeginInit () Implements ISupportInitialize.BeginInit



設計環境通常會使用這個方法來開始初始化用於表單或另一個元件所使用的元件。Design environments typically use this method to start the initialization of a component that is used on a form or used by another component. ISupportInitialize.EndInit()方法會結束初始化。The ISupportInitialize.EndInit() method ends the initialization. 使用 BeginInitISupportInitialize.EndInit() 方法可防止控制項在完全初始化之前使用。Using the BeginInit and ISupportInitialize.EndInit() methods prevents the control from being used before it is fully initialized. 初始化發生於執行階段。The initialization occurs at run time.


Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.