Export (0) Print
Expand All

SiteMapNodeCollection.OnValidate Method

Performs additional custom processes when validating a value.

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

protected virtual void OnValidate(
	Object value
)

Parameters

value
Type: System.Object

The SiteMapNode to validate.

ExceptionCondition
ArgumentNullException

value is null.

ArgumentException

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft