SiteMapNodeCollection.OnValidate Method (Object)


Performs additional custom processes when validating a value.

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

protected virtual void OnValidate(
	object value


Type: System.Object

The SiteMapNode to validate.

Exception Condition

value is null.


value is not a SiteMapNode.

Notes to Implementers:

The OnValidate method allows implementers to define processes that must be performed when executing the standard behavior of the underlying ArrayList object. By defining the OnValidate method, implementers can add functionality to inherited methods without having to override all other methods. Specifically, the OnValidate method is called anytime the SiteMapNodeCollection collection is used via a reference to an IList interface.

.NET Framework
Available since 2.0
Return to top