UrlHelper.Link(String, Object) Method

Definition

Generates an absolute URL for the specified routeName and route values, which contains the protocol (such as "http" or "https") and host name from the current request. See the remarks section for important security information.

public:
 virtual System::String ^ Link(System::String ^ routeName, System::Object ^ values);
public virtual string Link (string routeName, object values);
abstract member Link : string * obj -> string
override this.Link : string * obj -> string
Public Overridable Function Link (routeName As String, values As Object) As String

Parameters

routeName
String

The name of the route that is used to generate URL.

values
Object

An object that contains route values.

Returns

The generated absolute URL.

Implements

Applies to