Share via


UrlHelperBase.GenerateUrl Methode

Definition

Überlädt

GenerateUrl(String, String, String)

Generiert einen URI aus den bereitgestellten Komponenten.

GenerateUrl(String, String, String, String)

Generieren Sie eine URL mit den angegebenen Werten.

GenerateUrl(String, String, String)

Quelle:
UrlHelperBase.cs

Generiert einen URI aus den bereitgestellten Komponenten.

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

Parameter

protocol
String

Das URI-Schema/-Protokoll.

host
String

Der URI-Host.

path
String

Der URI-Pfad und die verbleibenden Teile (Pfad, Abfrage und Fragment).

Gibt zurück

Ein absoluter URI, wenn oder protocolhost angegeben ist, generiert andernfalls einen URI mit einem absoluten Pfad.

Gilt für:

GenerateUrl(String, String, String, String)

Quelle:
UrlHelperBase.cs

Generieren Sie eine URL mit den angegebenen Werten.

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

Parameter

protocol
String

Das Protokoll,

host
String

Der Host.

virtualPath
String

Der virtuelle Pfad.

fragment
String

Das Fragment.

Gibt zurück

Die generierte URL

Gilt für: