System.Web.UI.WebControls.SubMenuStyleCollection.Contains Method

Determines whether a System.Web.UI.WebControls.SubMenuStyleCollection collection contains a specific System.Web.UI.WebControls.SubMenuStyle instance.

Syntax

public bool Contains (SubMenuStyle style)

Parameters

style
The System.Web.UI.WebControls.SubMenuStyle instance to locate in the System.Web.UI.WebControls.SubMenuStyleCollection collection.

Returns

true if the System.Web.UI.WebControls.SubMenuStyle instance is found in the System.Web.UI.WebControls.SubMenuStyleCollection collection; otherwise, false. If null is passed as the style parameter, false is returned.

Remarks

The System.Web.UI.StateManagedCollection.OnValidate(object) method is called to validate the style parameter before the System.Web.UI.WebControls.SubMenuStyleCollection collection is checked.

Requirements

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