RemoteAttribute Constructors

Definition

Overloads

RemoteAttribute()

Initializes a new instance of the RemoteAttribute class.

RemoteAttribute(String)

Initializes a new instance of the RemoteAttribute class.

RemoteAttribute(String, String)

Initializes a new instance of the RemoteAttribute class.

RemoteAttribute(String, String, String)

Initializes a new instance of the RemoteAttribute class.

RemoteAttribute()

Source:
RemoteAttribute.cs
Source:
RemoteAttribute.cs

Initializes a new instance of the RemoteAttribute class.

protected:
 RemoteAttribute();
protected RemoteAttribute ();
Protected Sub New ()

Remarks

Intended for subclasses that support URL generation with no route, action, or controller names.

Applies to

RemoteAttribute(String)

Source:
RemoteAttribute.cs
Source:
RemoteAttribute.cs

Initializes a new instance of the RemoteAttribute class.

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

Parameters

routeName
String

The route name used when generating the URL where client should send a validation request.

Remarks

Finds the routeName in any area of the application.

Applies to

RemoteAttribute(String, String)

Source:
RemoteAttribute.cs
Source:
RemoteAttribute.cs

Initializes a new instance of the RemoteAttribute class.

public:
 RemoteAttribute(System::String ^ action, System::String ^ controller);
public RemoteAttribute (string action, string controller);
new Microsoft.AspNetCore.Mvc.RemoteAttribute : string * string -> Microsoft.AspNetCore.Mvc.RemoteAttribute
Public Sub New (action As String, controller As String)

Parameters

action
String

The action name used when generating the URL where client should send a validation request.

controller
String

The controller name used when generating the URL where client should send a validation request.

Remarks

If either action or controller is null, uses the corresponding ambient value.

Finds the controller in the current area.

Applies to

RemoteAttribute(String, String, String)

Source:
RemoteAttribute.cs
Source:
RemoteAttribute.cs

Initializes a new instance of the RemoteAttribute class.

public:
 RemoteAttribute(System::String ^ action, System::String ^ controller, System::String ^ areaName);
public RemoteAttribute (string action, string controller, string areaName);
new Microsoft.AspNetCore.Mvc.RemoteAttribute : string * string * string -> Microsoft.AspNetCore.Mvc.RemoteAttribute
Public Sub New (action As String, controller As String, areaName As String)

Parameters

action
String

The action name used when generating the URL where client should send a validation request.

controller
String

The controller name used when generating the URL where client should send a validation request.

areaName
String

The name of the area containing the controller.

Remarks

If either action or controller is null, uses the corresponding ambient value.

If areaName is null, finds the controller in the root area. Use the RemoteAttribute(String, String) overload find the controller in the current area. Or explicitly pass the current area's name as the areaName argument to this overload.

Applies to