RuleSettings.Name Property

 

Gets or sets the name of the RuleSettings object.

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

[ConfigurationPropertyAttribute("name", IsRequired = true, IsKey = true, 
	DefaultValue = "")]
[StringValidatorAttribute(MinLength = 1)]
public string Name { get; set; }

Property Value

Type: System.String

The name of the RuleSettings object. The default value is an empty string ("").

A unique name is required.

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

ruleSetting.Name = "All Errors Custom";

.NET Framework
Available since 2.0
Return to top
Show: