Machinations

AspMvcActionSelectorAttribute Class Reference

ASP.NET MVC attribute. When applied to a parameter of an attribute, indicates that this parameter is an MVC action name. More...

Inheritance diagram for AspMvcActionSelectorAttribute:

## Detailed Description

ASP.NET MVC attribute. When applied to a parameter of an attribute, indicates that this parameter is an MVC action name.

[ActionName("Foo")]
public ActionResult Login(string returnUrl) {
ViewBag.ReturnUrl = Url.Action("Foo"); // OK
return RedirectToAction("Bar"); // Error: Cannot resolve action
}

The documentation for this class was generated from the following file:

- Properties/Annotations.cs