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, string CmdArg, string Icon, string Url, bool UseActionEvent, SecurityAccessLevel Secure, bool Visible, bool NewWindow ) |
Visual Basic |
---|
Public Function Add ( ID As Integer, Title As String, CmdName As String, CmdArg As String, Icon As String, Url As String, UseActionEvent As Boolean, Secure As SecurityAccessLevel, Visible As Boolean, NewWindow As Boolean ) 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.
- CmdArg
- Type: System..::..String
The command argument passed to the client when this action is clicked.
- Icon
- Type: System..::..String
The URL of the Icon to place next to this action
- Url
- Type: System..::..String
The destination URL to redirect the client browser when this action is clicked.
- UseActionEvent
- Type: System..::..Boolean
Determines whether client will receive an event notification
- Secure
- Type: DotNetNuke.Security..::..SecurityAccessLevel
The security access level required for access to this action
- Visible
- Type: System..::..Boolean
Whether this action will be displayed
- NewWindow
- Type: System..::..Boolean
Whether open in new window.
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.