Generates a URL with a path for an action method, which contains the specified action
name, controller
name, route values
, protocol
to use, host
name, and fragment
. Generates an absolute URL if the protocol
and host
are non-null
. See the remarks section for important security information.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller, System::Object ^ values, System::String ^ protocol, System::String ^ host, System::String ^ fragment);
public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host, string fragment);
public static string? Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller, object? values, string? protocol, string? host, string? fragment);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string * obj * string * string * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String, values As Object, protocol As String, host As String, fragment As String) As String
Parameters
The name of the action method.
The name of the controller.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The fragment for the URL.
ReturnsThe generated URL.
RemarksThe value of host
should be a trusted value. Relying on the value of the current request can allow untrusted input to influence the resulting URI unless the Host
header has been validated. See the deployment documentation for instructions on how to properly validate the Host
header in your deployment environment.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4