System.Web.SiteMapNodeCollection.IndexOf Method

Searches for the specified System.Web.SiteMapNode object, and then returns the zero-based index of the first occurrence within the entire collection.

Syntax

public virtual int IndexOf (SiteMapNode value)

Parameters

value
The System.Web.SiteMapNode to locate in the System.Web.SiteMapNodeCollection.

Returns

The zero-based index of the first occurrence of value within the entire System.Web.SiteMapNodeCollection, if found; otherwise, -1.

Remarks

The SiteMapNodeCollection.IndexOf(SiteMapNode) method determines equality by calling the object.Equals(object) method.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0