BeginInit Method

EventLog.BeginInit Method

Begins the initialization of an EventLog used on a form or used by another component. The initialization occurs at runtime.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public void BeginInit ()
public final void BeginInit ()
public final function BeginInit ()
Not applicable.

Exception typeCondition


EventLog is already initialized.

The Visual Studio 2005 design environment uses this method to start the initialization of a component used on a form or by another component. The EndInit method ends the initialization. Using the BeginInit and EndInit methods prevent the control from being used before it is fully initialized.

Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft