Removes the first occurrence of the specified System.Web.UI.WebControls.SubMenuStyle object from the System.Web.UI.WebControls.SubMenuStyleCollection collection.
- style
- The System.Web.UI.WebControls.SubMenuStyle object to remove from the collection.
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.