System.Web.UI.WebControls.SubMenuStyleCollection.Remove Method

Removes the first occurrence of the specified System.Web.UI.WebControls.SubMenuStyle object from the System.Web.UI.WebControls.SubMenuStyleCollection collection.

Syntax

public void Remove (SubMenuStyle style)

Parameters

style
The System.Web.UI.WebControls.SubMenuStyle object to remove from the collection.

Remarks

The System.Web.UI.StateManagedCollection.OnValidate(object) method is called to validate the style parameter before it is used to locate the System.Web.UI.WebControls.SubMenuStyle object to remove from the System.Web.UI.WebControls.SubMenuStyleCollection collection.

The System.Web.UI.StateManagedCollection.OnRemove(int, object) method is called before the System.Web.UI.WebControls.SubMenuStyle object is removed, and the System.Web.UI.StateManagedCollection.OnRemoveComplete(int, object) method is called after the object is removed from the System.Web.UI.WebControls.SubMenuStyleCollection collection.

Requirements

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