• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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
System.Object
ModuleActionAttribute
Namespace: DotNetNuke.Web.Mvc.Framework.ActionFilters
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class ModuleActionAttribute : ActionFilterAttribute

Constructors

| Improve this Doc View Source

ModuleActionAttribute()

Initializes a new instance of the ModuleActionAttribute class.

Declaration
public ModuleActionAttribute()

Properties

| Improve this Doc View Source

ControlKey

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

OnActionExecuting(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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS