共用方式為


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 ,請在根目錄中尋找控制器。 否則在目前區域中尋找。

適用於