Click or drag to resize

IControllerStandardParameter Property

Optional route element for more arguments

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

Property Value

Type: String
Examples
A example to read the ID
/// <summary>
/// Get route data parameter from Controller Context object.
/// If no value or object no exists then gives "" return.
/// </summary>
public string Parameter
{
    get
    {
        if (this.ControllerContext.RouteData.Values["parameter"] == null)
        {
            return "";
        }
        return this.ControllerContext.RouteData.Values["parameter"].ToString();
    }
}
See Also