EventLog.BeginInit EventLog.BeginInit EventLog.BeginInit EventLog.BeginInit Method

定義

開始初始化表單或為另一個元件所使用的 EventLogBegins the initialization of an EventLog used on a form or used by another component. 初始化會於執行階段時執行。The initialization occurs at runtime.

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

實作

例外狀況

備註

Visual Studio 2005Visual Studio 2005設計環境會使用這個方法來開始初始化用於表單或另一個元件所使用的元件。The Visual Studio 2005Visual Studio 2005 design environment uses this method to start the initialization of a component used on a form or by another component. EndInit方法結束初始化。The EndInit method ends the initialization. 使用BeginInitEndInit方法可防止控制項完全初始化之前使用。Using the BeginInit and EndInit methods prevent the control from being used before it is fully initialized.

安全性

EventLogPermission
用於寫入在電腦上的事件記錄檔資訊。for writing the event log information on the computer. 相關聯的列舉型別: WriteAssociated enumeration: Write

適用於

另請參閱