Click or drag to resize

IControllerStandardActionName Property

Action respectively View name to invokes

Namespace:  SOWIWeb.Helper.Interface
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
string ActionName { get; }

Property Value

Type: String
Examples
A example to read the action name
/// <summary>
/// Get and set Action name (controller context)
/// </summary>
/// <remarks>
/// See <see cref="ControllerContext.RouteData"/>
/// </remarks>
public string ActionName
{
    get
    {
        return this.ControllerContext.RouteData.Values["action"].ToString();
    }
    protected set
    {
        this.ControllerContext.RouteData.Values["action"] = value;
    }
}
See Also