Condividi tramite


UrlHelperBase.GenerateUrl Metodo

Definizione

Overload

GenerateUrl(String, String, String)

Genera un URI dai componenti forniti.

GenerateUrl(String, String, String, String)

Generare un URL usando i valori specificati.

GenerateUrl(String, String, String)

Origine:
UrlHelperBase.cs
Origine:
UrlHelperBase.cs

Genera un URI dai componenti forniti.

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

Parametri

protocol
String

Schema URI/protocollo.

host
String

Host URI.

path
String

Percorso URI e parti rimanenti (percorso, query e frammento).

Restituisce

Un URI assoluto se protocol o host è specificato, in caso contrario genera un URI con un percorso assoluto.

Si applica a

GenerateUrl(String, String, String, String)

Origine:
UrlHelperBase.cs
Origine:
UrlHelperBase.cs

Generare un URL usando i valori specificati.

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

Parametri

protocol
String

Protocollo.

host
String

Host.

virtualPath
String

Percorso virtuale.

fragment
String

Frammento.

Restituisce

URL generato

Si applica a