Add an element of the specified ModuleAction to the collection at the designated index.

Namespace: DotNetNuke.Entities.Modules.Actions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public void Insert(
	int index,
	ModuleAction value
)
Visual Basic
Public Sub Insert ( 
	index As Integer,
	value As ModuleAction
)

Parameters

index
Type: System..::..Int32
An Integer to indicate the location to add the object to the collection.
value
Type: DotNetNuke.Entities.Modules.Actions..::..ModuleAction
An object of type ModuleAction to add to the collection.

Examples

 Copy imageCopy Code
' Inserts a ModuleAction at index 0 of the collection. 
collection.Insert(0, New ModuleAction(5, "Edit Action", "Edit"))

See Also