ArcFM Desktop Developer Guide
AspMvcActionSelectorAttribute Class
Members  Example 


Product Availability
Required Licenses
.NET Assembly
ASP.NET MVC attribute. When applied to a parameter of an attribute, indicates that this parameter is an MVC action name
Object Model
AspMvcActionSelectorAttribute Class
Syntax
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Property Or  _
    AttributeTargets.Parameter, 
   AllowMultiple=False, 
   Inherited=True)>
Public NotInheritable Class AspMvcActionSelectorAttribute 
   Inherits System.Attribute
'Usage
 
Dim instance As AspMvcActionSelectorAttribute
[AttributeUsage(ValidOn=AttributeTargets.Property | 
    AttributeTargets.Parameter, 
   AllowMultiple=false, 
   Inherited=true)]
public sealed class AspMvcActionSelectorAttribute : System.Attribute 
Example
[ActionName("Foo")]
public ActionResult Login(string returnUrl) {
  ViewBag.ReturnUrl = Url.Action("Foo"); // OK
  return RedirectToAction("Bar"); // Error: Cannot resolve action
}
Inheritance Hierarchy

System.Object
   System.Attribute
      Miner.Desktop.DesignerExpress.Annotations.AspMvcActionSelectorAttribute

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

AspMvcActionSelectorAttribute Members
Miner.Desktop.DesignerExpress.Annotations Namespace

 

 


Send Comment