DataTable.BeginInit DataTable.BeginInit DataTable.BeginInit DataTable.BeginInit Method

定義

開始對表單或另一個元件所使用的 DataTable 進行初始化作業。Begins the initialization of a DataTable 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. BeginInit使用和EndInit方法可防止控制項在完全初始化之前使用。Using the BeginInit and EndInit methods prevents the control from being used before it is fully initialized.

適用於

另請參閱