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.

适用于