Class ModuleActionAttribute
The ModuleActionAttribute is used to define a single ModuleAction. It can be applied at the Controller level if all Action methods should have the same ModuleAction, but it is more likely to be used at the Action method level.
Inheritance
Namespace: DotNetNuke.Web.Mvc.Framework.ActionFilters
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class ModuleActionAttribute : ActionFilterAttribute
Constructors
| Improve this Doc View SourceModuleActionAttribute()
Initializes a new instance of the ModuleActionAttribute class.
Declaration
public ModuleActionAttribute()
Properties
| Improve this Doc View SourceControlKey
Gets or sets the ControlKey property is the key for the module control.
Declaration
public string ControlKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Icon
Gets or sets the Icon property is the url for the Icon to be used in the Module Actions menu. An empty string will mean that the Edit "pencil" icon is used.
Declaration
public string Icon { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SecurityAccessLevel
Gets or sets the SecurityAccessLevel is an enum property that sets the security level for the module action.
Declaration
public SecurityAccessLevel SecurityAccessLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| SecurityAccessLevel |
Title
Gets or sets the Title property is the title for the Module Action. This property is only used if the TitleKey is left blank.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
TitleKey
Gets or sets the TitleKey property is the localization key for the title for the Module Action.
Declaration
public string TitleKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceOnActionExecuting(ActionExecutingContext)
The ModuleActionAttribute is used to define a single ModuleAction. It can be applied at the Controller level if all Action methods should have the same ModuleAction, but it is more likely to be used at the Action method level.
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ActionExecutingContext | filterContext |