Click or drag to resize
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
SystemObject
  SystemAttribute
    Slash.Diagnostics.ReSharper.AnnotationsAspMvcActionSelectorAttribute

Namespace: Slash.Diagnostics.ReSharper.Annotations
Assembly: Slash.Diagnostics (in Slash.Diagnostics.dll) Version: 1.0.6018.40181
Syntax
public sealed class AspMvcActionSelectorAttribute : Attribute

The AspMvcActionSelectorAttribute type exposes the following members.

Constructors
  NameDescription
Public methodAspMvcActionSelectorAttribute
Initializes a new instance of the AspMvcActionSelectorAttribute class
Top
Examples
[ActionName("Foo")]
public ActionResult Login(string returnUrl)
{
  ViewBag.ReturnUrl = Url.Action("Foo"); // OK
  return RedirectToAction("Bar"); // Error: Cannot resolve action
}
See Also