RingSoft.DataEntryControls.Engine.Annotations Namespace
RingSoft.DataEntryControls.WPF 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.DataEntryControls.WPF
Assembly:  RingSoft.DataEntryControls.WPF (in RingSoft.DataEntryControls.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
}

Inheritance Hierarchy


Object
  Attribute
    RingSoft.DataEntryControls.WPF..::..AspMvcActionSelectorAttribute