EventMappingSettings.EndEventCode Property

Gets or sets the ending event code of the range.

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

public int EndEventCode { get; set; }
/** @property */
public int get_EndEventCode ()

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

public function get EndEventCode () : int

public function set EndEventCode (value : int)

Not applicable.

Property Value

The ending event code of the range. The default is MaxValue.

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 EndEventCode property. This code example is part of a larger example provided for the HealthMonitoringSection class.

eventMappingSetting.EndEventCode = 4096;

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