RuleSettings.Provider Property

Definition

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

C#
[System.Configuration.ConfigurationProperty("provider", DefaultValue="")]
public string Provider { get; set; }

Property Value

The name of the ProviderSettings object this rule applies to.

Attributes

Examples

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

C#
ruleSetting.Provider = "EventLogProvider";

Remarks

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also