Initializes a new instance of the ModuleAction class using the specified parameters

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

Syntax

C#
public ModuleAction(
	int id,
	string title,
	string cmdName,
	string cmdArg,
	string icon,
	string url,
	string clientScript,
	bool useActionEvent,
	SecurityAccessLevel secure,
	bool visible,
	bool newWindow
)
Visual Basic
Public Sub New ( 
	id As Integer,
	title As String,
	cmdName As String,
	cmdArg As String,
	icon As String,
	url As String,
	clientScript As String,
	useActionEvent As Boolean,
	secure As SecurityAccessLevel,
	visible As Boolean,
	newWindow As Boolean
)

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.
clientScript
Type: System..::..String
paramclientScriptM:DotNetNuke.Entities.Modules.Actions.ModuleAction.#ctor(System.Int32,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,DotNetNuke.Security.SecurityAccessLevel,System.Boolean,System.Boolean)
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
paramnewWindowM:DotNetNuke.Entities.Modules.Actions.ModuleAction.#ctor(System.Int32,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,DotNetNuke.Security.SecurityAccessLevel,System.Boolean,System.Boolean)

Remarks

The moduleaction constructor is used to set the various properties of the ModuleAction class at the time the instance is created.

See Also