DataSet.BeginInit 方法

定义

开始初始化在窗体上使用或由另一个组件使用的 DataSetBegins the initialization of a DataSet that is used on a form or used by another component. 初始化发生在运行时。The initialization occurs at run time.

public:
 virtual void BeginInit();
public void BeginInit ();
abstract member BeginInit : unit -> unit
override this.BeginInit : unit -> unit
Public Sub BeginInit ()

实现

注解

Visual Studio .NET 设计环境使用此方法开始初始化在窗体上使用或由另一个组件使用的组件。The Visual Studio .NET design environment uses this method to start the initialization of a component that is used on a form or used by another component. EndInit方法结束初始化。The EndInit method ends the initialization. 使用 BeginInitEndInit 方法可防止控件在完全初始化之前被使用。Using the BeginInit and EndInit methods prevents the control from being used before it is fully initialized.

适用于