AspMvcActionSelectorAttribute Class
ASP.NET MVC attribute. When applied to a parameter of an attribute,
indicates that this parameter is an MVC action name.
Namespace:
RingSoft.DataEntryControls.Engine.AnnotationsAssembly: RingSoft.DataEntryControls.Engine (in RingSoft.DataEntryControls.Engine.dll)
Syntax
[AttributeUsageAttribute] public sealed class AspMvcActionSelectorAttribute : Attribute
<AttributeUsageAttribute> _ Public NotInheritable Class AspMvcActionSelectorAttribute _ Inherits Attribute
[AttributeUsageAttribute] public ref class AspMvcActionSelectorAttribute sealed : public Attribute
Examples
C#
[ActionName("Foo")] public ActionResult Login(string returnUrl) { ViewBag.ReturnUrl = Url.Action("Foo"); // OK return RedirectToAction("Bar"); // Error: Cannot resolve action }