RuleSettings.Custom Property

 

Gets or sets the fully qualified type of a custom class that implements IWebEventCustomEvaluator.

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

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

Property Value

Type: System.String

The fully qualified type of a custom class that implements IWebEventCustomEvaluator.

The type reference is formed as follows (items in brackets are not required): Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]. For example, "ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"

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

ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll";

.NET Framework
Available since 2.0
Return to top
Show: