AspMvcActionSelectorAttribute Class |
ASP.NET MVC attribute. When applied to a parameter of an attribute,
indicates that this parameter is an MVC action name
Inheritance Hierarchy Namespace: Ozeki.CommonAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.98
Syntaxpublic sealed class AspMvcActionSelectorAttribute : Attribute
Public NotInheritable Class AspMvcActionSelectorAttribute
Inherits Attribute
public ref class AspMvcActionSelectorAttribute sealed : public Attribute
[<SealedAttribute>]
type AspMvcActionSelectorAttribute =
class
inherit Attribute
endThe AspMvcActionSelectorAttribute type exposes the following members.
Constructors
Example
[ActionName("Foo")]
public ActionResult Login(string returnUrl) {
ViewBag.ReturnUrl = Url.Action("Foo"); // OK
return RedirectToAction("Bar"); // Error: Cannot resolve action
}
See Also