RemoteAttribute 构造函数

定义

重载

RemoteAttribute()

初始化 RemoteAttribute 类的新实例。

RemoteAttribute(String)

使用指定的路由名称初始化 类的新实例 RemoteAttribute

RemoteAttribute(String, String)

使用指定的操作方法名称和控制器名称初始化 类的新实例 RemoteAttribute

RemoteAttribute(String, String, String)

使用指定的操作方法名称、控制器名称和区域名称初始化 类的新实例 RemoteAttribute

RemoteAttribute(String, String, AreaReference)

初始化 RemoteAttribute 类的新实例。

RemoteAttribute()

初始化 RemoteAttribute 类的新实例。

protected RemoteAttribute ();
Protected Sub New ()

适用于

RemoteAttribute(String)

使用指定的路由名称初始化 类的新实例 RemoteAttribute

public RemoteAttribute (string routeName);
new System.Web.Mvc.RemoteAttribute : string -> System.Web.Mvc.RemoteAttribute
Public Sub New (routeName As String)

参数

routeName
String

路由名称。

适用于

RemoteAttribute(String, String)

使用指定的操作方法名称和控制器名称初始化 类的新实例 RemoteAttribute

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)

参数

action
String

操作方法的名称。

controller
String

控制器的名称。

适用于

RemoteAttribute(String, String, String)

使用指定的操作方法名称、控制器名称和区域名称初始化 类的新实例 RemoteAttribute

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)

参数

action
String

操作方法的名称。

controller
String

控制器的名称。

areaName
String

区域名称。

适用于

RemoteAttribute(String, String, AreaReference)

初始化 RemoteAttribute 类的新实例。

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)

参数

action
String

路由名称。

controller
String

控制器的名称。

areaReference
AreaReference

如果 UseRoot为 ,则查找根中的控制器。 否则,在当前区域中查找。

适用于