Add an element of the specified ModuleAction to the end of the collection.
Namespace: DotNetNuke.Entities.Modules.ActionsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public ModuleAction Add( int ID, string Title, string CmdName ) |
Visual Basic |
---|
Public Function Add ( ID As Integer, Title As String, CmdName As String ) As ModuleAction |
Parameters
- ID
- Type: System..::..Int32
This is the identifier to use for this action.
- Title
- Type: System..::..String
This is the title that will be displayed for this action
- CmdName
- Type: System..::..String
The command name passed to the client when this action is clicked.
Return Value
The index of the newly added ModuleAction
Remarks
This method creates a new ModuleAction with the specified
values, adds it to the collection and returns the index of the newly created ModuleAction.