RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

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.DbMaintenance
Assembly:  RingSoft.DbMaintenance (in RingSoft.DbMaintenance.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
}

Inheritance Hierarchy


Object
  Attribute
    RingSoft.DbMaintenance..::..AspMvcActionSelectorAttribute