Export (0) Print
Expand All

SubMenuStyleCollection.OnInsert Method

Called before the Add and Insert methods.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract OnInsert : 
        index:int * 
        value:Object -> unit  
override OnInsert : 
        index:int * 
        value:Object -> unit

Parameters

index
Type: System.Int32

The zero-based index at which value should be inserted.

value
Type: System.Object

The object to insert into the SubMenuStyleCollection collection.

ExceptionCondition
ArgumentException

value is not of type SubMenuStyle.

The OnInsert method is called before the Add and Insert methods. You can override the OnInsert method in custom SubMenuStyleCollection classes to perform custom processing of SubMenuStyle objects before they are added to the SubMenuStyleCollection collection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft