RemoteAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoteAttribute() |
Initializes a new instance of the RemoteAttribute class. |
RemoteAttribute(String) |
Initializes a new instance of the RemoteAttribute class using the specified route name. |
RemoteAttribute(String, String) |
Initializes a new instance of the RemoteAttribute class using the specified action-method name and controller name. |
RemoteAttribute(String, String, String) |
Initializes a new instance of the RemoteAttribute class using the specified action-method name, controller name, and area name. |
RemoteAttribute(String, String, AreaReference) |
Initializes a new instance of the RemoteAttribute class. |
RemoteAttribute()
Initializes a new instance of the RemoteAttribute class.
protected RemoteAttribute ();
Protected Sub New ()
Applies to
RemoteAttribute(String)
Initializes a new instance of the RemoteAttribute class using the specified route name.
public RemoteAttribute (string routeName);
new System.Web.Mvc.RemoteAttribute : string -> System.Web.Mvc.RemoteAttribute
Public Sub New (routeName As String)
Parameters
- routeName
- String
The route name.
Applies to
RemoteAttribute(String, String)
Initializes a new instance of the RemoteAttribute class using the specified action-method name and controller name.
public RemoteAttribute (string action, string controller);
new System.Web.Mvc.RemoteAttribute : string * string -> System.Web.Mvc.RemoteAttribute
Public Sub New (action As String, controller As String)
Parameters
- action
- String
The name of the action method.
- controller
- String
The name of the controller.
Applies to
RemoteAttribute(String, String, String)
Initializes a new instance of the RemoteAttribute class using the specified action-method name, controller name, and area name.
public RemoteAttribute (string action, string controller, string areaName);
new System.Web.Mvc.RemoteAttribute : string * string * string -> System.Web.Mvc.RemoteAttribute
Public Sub New (action As String, controller As String, areaName As String)
Parameters
- action
- String
The name of the action method.
- controller
- String
The name of the controller.
- areaName
- String
The name of the area.
Applies to
RemoteAttribute(String, String, AreaReference)
Initializes a new instance of the RemoteAttribute class.
public RemoteAttribute (string action, string controller, System.Web.Mvc.AreaReference areaReference);
new System.Web.Mvc.RemoteAttribute : string * string * System.Web.Mvc.AreaReference -> System.Web.Mvc.RemoteAttribute
Public Sub New (action As String, controller As String, areaReference As AreaReference)
Parameters
- action
- String
The route name.
- controller
- String
The name of the controller.
- areaReference
- AreaReference
Find the controller in the root if UseRoot. Otherwise look in the current area.