Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EventName Property

RuleSettings.EventName Property

Gets or sets the name of the EventMappingSettings object this rule applies to.

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

[ConfigurationPropertyAttribute("eventName", IsRequired = true, DefaultValue = "")]
public string EventName { get; set; }

Property Value

Type: System.String
The name of the EventMappingSettings object this rule applies to.

The EventMappingSettings object referenced by this property must be contained by the same HealthMonitoringSection object that also contains this RuleSettings

object.

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

ruleSetting.EventName = "All Errors";

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft