EventMappingSettings.StartEventCode Property

Gets or sets the starting event code of the range.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public int StartEventCode { get; set; }
/** @property */
public int get_StartEventCode ()

/** @property */
public void set_StartEventCode (int value)

public function get StartEventCode () : int

public function set StartEventCode (value : int)

Not applicable.

Property Value

The starting event code of the range. The default is 0.

Event codes are mapped to events defined by the constants in the WebEventCodes object. The mapping uses a range specified with the StartEventCode and EndEventCode properties.

The following code example shows how to use the StartEventCode property. This code example is part of a larger example provided for the HealthMonitoringSection class.

eventMappingSetting.StartEventCode = 0;

Windows 98, 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