Share via


UrlHelperBase.GenerateUrl Method

Definition

Overloads

GenerateUrl(String, String, String)

Generates a URI from the provided components.

GenerateUrl(String, String, String, String)

Generate a url using the specified values.

GenerateUrl(String, String, String)

Source:
UrlHelperBase.cs
Source:
UrlHelperBase.cs

Generates a URI from the provided components.

protected:
 System::String ^ GenerateUrl(System::String ^ protocol, System::String ^ host, System::String ^ path);
protected string GenerateUrl (string protocol, string host, string path);
protected string? GenerateUrl (string? protocol, string? host, string? path);
member this.GenerateUrl : string * string * string -> string
Protected Function GenerateUrl (protocol As String, host As String, path As String) As String

Parameters

protocol
String

The URI scheme/protocol.

host
String

The URI host.

path
String

The URI path and remaining portions (path, query, and fragment).

Returns

An absolute URI if the protocol or host is specified, otherwise generates a URI with an absolute path.

Applies to

GenerateUrl(String, String, String, String)

Source:
UrlHelperBase.cs
Source:
UrlHelperBase.cs

Generate a url using the specified values.

protected:
 System::String ^ GenerateUrl(System::String ^ protocol, System::String ^ host, System::String ^ virtualPath, System::String ^ fragment);
protected string GenerateUrl (string protocol, string host, string virtualPath, string fragment);
protected string? GenerateUrl (string? protocol, string? host, string? virtualPath, string? fragment);
member this.GenerateUrl : string * string * string * string -> string
Protected Function GenerateUrl (protocol As String, host As String, virtualPath As String, fragment As String) As String

Parameters

protocol
String

The protocol.

host
String

The host.

virtualPath
String

The virtual path.

fragment
String

The fragment.

Returns

The generated url

Applies to