This documentation is archived and is not being maintained.

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
)
protected void OnValidate (
	Object value
)
protected function OnValidate (
	value : Object
)
Not applicable.

Parameters

value

The SiteMapNode to validate.

Exception typeCondition

ArgumentNullException

value is a null reference (Nothing in Visual Basic).

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: