Редагувати

Поділитися через


EventMappingSettings.EndEventCode Property

Definition

Gets or sets the ending event code of the range.

public:
 property int EndEventCode { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("endEventCode", DefaultValue=2147483647)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int EndEventCode { get; set; }
[<System.Configuration.ConfigurationProperty("endEventCode", DefaultValue=2147483647)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.EndEventCode : int with get, set
Public Property EndEventCode As Integer

Property Value

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

Attributes

Examples

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;
eventMappingSetting.EndEventCode = 4096

Remarks

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.

Applies to

See also