C# Class Rebel.Cms.Web.RouteDataExtensions

Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
Clone ( this routeData ) : System.Web.Routing.RouteData

Clones the RouteData to a new RouteData object

GetControllerExtenderParameters ( this routeData ) : object[]

Returns the ExtenderData for the ControllerExtender

GetControllerExtenderParentContext ( this routeData ) : System.Web.Mvc.ControllerContext

Returns the ControllerContext for the parent Controller of a ControllerExtender

GetOptionalString ( this routeData, string key ) : string
GetOptionalValue ( this routeData, string key ) : object
GetRequiredValue ( this routeData, string key ) : object
IsControllerExtender ( this routeData ) : bool

Returns true if the executing controller is a ControllerExtender

Private Methods

Method Description
GetControllerHash ( this routeData ) : string

Returns a string representation of the routeData for use in Dictionary keys, the string returned depicts a unique route for a controller.

Method Details

Clone() public static method

Clones the RouteData to a new RouteData object
public static Clone ( this routeData ) : System.Web.Routing.RouteData
routeData this
return System.Web.Routing.RouteData

GetControllerExtenderParameters() public static method

Returns the ExtenderData for the ControllerExtender
public static GetControllerExtenderParameters ( this routeData ) : object[]
routeData this
return object[]

GetControllerExtenderParentContext() public static method

Returns the ControllerContext for the parent Controller of a ControllerExtender
public static GetControllerExtenderParentContext ( this routeData ) : System.Web.Mvc.ControllerContext
routeData this
return System.Web.Mvc.ControllerContext

GetOptionalString() public static method

public static GetOptionalString ( this routeData, string key ) : string
routeData this
key string
return string

GetOptionalValue() public static method

public static GetOptionalValue ( this routeData, string key ) : object
routeData this
key string
return object

GetRequiredValue() public static method

public static GetRequiredValue ( this routeData, string key ) : object
routeData this
key string
return object

IsControllerExtender() public static method

Returns true if the executing controller is a ControllerExtender
public static IsControllerExtender ( this routeData ) : bool
routeData this
return bool