RuleSettings.Provider Property

 

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

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

[ConfigurationPropertyAttribute("provider", DefaultValue = "")]
public string Provider { get; set; }

Property Value

Type: System.String

The name of the ProviderSettings object this rule applies to.

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

ruleSetting.Provider = "EventLogProvider";

.NET Framework
Available since 2.0
Return to top
Show: