C# Class System.Web.Mvc.T4Extensions

Show file Open project: juanplopes/simple Class Usage Examples

Public Methods

Method Description
Action ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
Action ( this urlHelper, System.Web.Mvc.ActionResult result ) : string
ActionAbsolute ( this urlHelper, System.Web.Mvc.ActionResult result ) : string
ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions ) : System.Web.Mvc.MvcHtmlString
ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object>.IDictionary htmlAttributes ) : System.Web.Mvc.MvcHtmlString
ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result, object>.IDictionary htmlAttributes ) : System.Web.Mvc.MvcHtmlString
ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
AddRouteValue ( this result, string name, object value ) : System.Web.Mvc.ActionResult
AddRouteValues ( this result, RouteValueDictionary routeValues ) : System.Web.Mvc.ActionResult
AddRouteValues ( this result, System nameValueCollection ) : System.Web.Mvc.ActionResult
AddRouteValues ( this result, object routeValues ) : System.Web.Mvc.ActionResult
BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.Html.MvcForm
BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod ) : System.Web.Mvc.Html.MvcForm
BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object>.IDictionary htmlAttributes ) : System.Web.Mvc.Html.MvcForm
BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object htmlAttributes ) : System.Web.Mvc.Html.MvcForm
FileExists ( string virtualPath ) : bool
GetRouteValueDictionary ( this result ) : RouteValueDictionary
GetT4MVCResult ( this result ) : IT4MVCActionResult
InitMVCT4Result ( this result, string area, string controller, string action ) : void
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result ) : Route
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults ) : Route
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints ) : Route
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints, string namespaces ) : Route
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, string namespaces ) : Route
MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, string namespaces ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints, string namespaces ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, string namespaces ) : Route
MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, string namespaces ) : Route
RenderAction ( this htmlHelper, System.Web.Mvc.ActionResult result ) : void
TimestampString ( string virtualPath ) : string

Private Methods

Method Description
CreateRoute ( string url, System.Web.Mvc.ActionResult result, object defaults, object constraints, string namespaces ) : Route

Method Details

Action() public static method

public static Action ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
result System.Web.Mvc.ActionResult
return System.Web.Mvc.MvcHtmlString

Action() public static method

public static Action ( this urlHelper, System.Web.Mvc.ActionResult result ) : string
urlHelper this
result System.Web.Mvc.ActionResult
return string

ActionAbsolute() public static method

public static ActionAbsolute ( this urlHelper, System.Web.Mvc.ActionResult result ) : string
urlHelper this
result System.Web.Mvc.ActionResult
return string

ActionLink() public static method

public static ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
linkText string
result System.Web.Mvc.ActionResult
return System.Web.Mvc.MvcHtmlString

ActionLink() public static method

public static ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions ) : System.Web.Mvc.MvcHtmlString
ajaxHelper this
linkText string
result System.Web.Mvc.ActionResult
ajaxOptions System.Web.Mvc.Ajax.AjaxOptions
return System.Web.Mvc.MvcHtmlString

ActionLink() public static method

public static ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object>.IDictionary htmlAttributes ) : System.Web.Mvc.MvcHtmlString
ajaxHelper this
linkText string
result System.Web.Mvc.ActionResult
ajaxOptions System.Web.Mvc.Ajax.AjaxOptions
htmlAttributes object>.IDictionary
return System.Web.Mvc.MvcHtmlString

ActionLink() public static method

public static ActionLink ( this ajaxHelper, string linkText, System.Web.Mvc.ActionResult result, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
ajaxHelper this
linkText string
result System.Web.Mvc.ActionResult
ajaxOptions System.Web.Mvc.Ajax.AjaxOptions
htmlAttributes object
return System.Web.Mvc.MvcHtmlString

ActionLink() public static method

public static ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result, object>.IDictionary htmlAttributes ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
linkText string
result System.Web.Mvc.ActionResult
htmlAttributes object>.IDictionary
return System.Web.Mvc.MvcHtmlString

ActionLink() public static method

public static ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
linkText string
result System.Web.Mvc.ActionResult
htmlAttributes object
return System.Web.Mvc.MvcHtmlString

AddRouteValue() public static method

public static AddRouteValue ( this result, string name, object value ) : System.Web.Mvc.ActionResult
result this
name string
value object
return System.Web.Mvc.ActionResult

AddRouteValues() public static method

public static AddRouteValues ( this result, RouteValueDictionary routeValues ) : System.Web.Mvc.ActionResult
result this
routeValues RouteValueDictionary
return System.Web.Mvc.ActionResult

AddRouteValues() public static method

public static AddRouteValues ( this result, System nameValueCollection ) : System.Web.Mvc.ActionResult
result this
nameValueCollection System
return System.Web.Mvc.ActionResult

AddRouteValues() public static method

public static AddRouteValues ( this result, object routeValues ) : System.Web.Mvc.ActionResult
result this
routeValues object
return System.Web.Mvc.ActionResult

BeginForm() public static method

public static BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.Html.MvcForm
htmlHelper this
result System.Web.Mvc.ActionResult
return System.Web.Mvc.Html.MvcForm

BeginForm() public static method

public static BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod ) : System.Web.Mvc.Html.MvcForm
htmlHelper this
result System.Web.Mvc.ActionResult
formMethod FormMethod
return System.Web.Mvc.Html.MvcForm

BeginForm() public static method

public static BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object>.IDictionary htmlAttributes ) : System.Web.Mvc.Html.MvcForm
htmlHelper this
result System.Web.Mvc.ActionResult
formMethod FormMethod
htmlAttributes object>.IDictionary
return System.Web.Mvc.Html.MvcForm

BeginForm() public static method

public static BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object htmlAttributes ) : System.Web.Mvc.Html.MvcForm
htmlHelper this
result System.Web.Mvc.ActionResult
formMethod FormMethod
htmlAttributes object
return System.Web.Mvc.Html.MvcForm

FileExists() public static method

public static FileExists ( string virtualPath ) : bool
virtualPath string
return bool

GetRouteValueDictionary() public static method

public static GetRouteValueDictionary ( this result ) : RouteValueDictionary
result this
return RouteValueDictionary

GetT4MVCResult() public static method

public static GetT4MVCResult ( this result ) : IT4MVCActionResult
result this
return IT4MVCActionResult

InitMVCT4Result() public static method

public static InitMVCT4Result ( this result, string area, string controller, string action ) : void
result this
area string
controller string
action string
return void

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
return System.Web.Routing.Route

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
return System.Web.Routing.Route

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
constraints object
return System.Web.Routing.Route

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints, string namespaces ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
constraints object
namespaces string
return System.Web.Routing.Route

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, object defaults, string namespaces ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
namespaces string
return System.Web.Routing.Route

MapRoute() public static method

public static MapRoute ( this routes, string name, string url, System.Web.Mvc.ActionResult result, string namespaces ) : Route
routes this
name string
url string
result System.Web.Mvc.ActionResult
namespaces string
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
constraints object
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, object constraints, string namespaces ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
constraints object
namespaces string
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, object defaults, string namespaces ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
defaults object
namespaces string
return System.Web.Routing.Route

MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result, string namespaces ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
namespaces string
return System.Web.Routing.Route

RenderAction() public static method

public static RenderAction ( this htmlHelper, System.Web.Mvc.ActionResult result ) : void
htmlHelper this
result System.Web.Mvc.ActionResult
return void

TimestampString() public static method

public static TimestampString ( string virtualPath ) : string
virtualPath string
return string