EventLog.EndInit 方法

定義

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

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

實作

備註

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

安全性

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

適用於

另請參閱