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.DbLookup.Controls.WPF.PropertiesAssembly: RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.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 }