HttpHandlerAction.Validate Property


Gets or sets the HttpHandlerAction validation.

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

[ConfigurationPropertyAttribute("validate", DefaultValue = true)]
public bool Validate { get; set; }

Property Value

Type: System.Boolean

true if the validation is allowed; otherwise, false.

If the Validate property is false, ASP.NET will not attempt to load the class until the actual matching request comes, potentially delaying the error but improving the startup time.

The following code example shows how to access the Validate property.

// Change the Validate for the HttpHandlerAction.
httpHandler.Validate = false;

.NET Framework
Available since 2.0
Return to top