SubMenuStyleCollection.Remove(SubMenuStyle) Method

Definition

Removes the first occurrence of the specified SubMenuStyle object from the SubMenuStyleCollection collection.

C#
public void Remove(System.Web.UI.WebControls.SubMenuStyle style);

Parameters

style
SubMenuStyle

The SubMenuStyle object to remove from the collection.

Exceptions

The SubMenuStyleCollection collection is read-only.

Remarks

The OnValidate method is called to validate the style parameter before it is used to locate the SubMenuStyle object to remove from the SubMenuStyleCollection collection.

The OnRemove method is called before the SubMenuStyle object is removed, and the OnRemoveComplete method is called after the object is removed from the SubMenuStyleCollection collection.

Applies to

Производ Верзије
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also