Sdílet prostřednictvím


UrlHelper.GenerateUrl(String, String, VirtualPathData, String) Metoda

Definice

Vygeneruje adresu URL pomocí zadaných komponent.

protected:
 virtual System::String ^ GenerateUrl(System::String ^ protocol, System::String ^ host, Microsoft::AspNetCore::Routing::VirtualPathData ^ pathData, System::String ^ fragment);
protected virtual string GenerateUrl (string protocol, string host, Microsoft.AspNetCore.Routing.VirtualPathData pathData, string fragment);
protected virtual string? GenerateUrl (string? protocol, string? host, Microsoft.AspNetCore.Routing.VirtualPathData? pathData, string? fragment);
abstract member GenerateUrl : string * string * Microsoft.AspNetCore.Routing.VirtualPathData * string -> string
override this.GenerateUrl : string * string * Microsoft.AspNetCore.Routing.VirtualPathData * string -> string
override this.GenerateUrl : string * string * Microsoft.AspNetCore.Routing.VirtualPathData * string -> string
Protected Overridable Function GenerateUrl (protocol As String, host As String, pathData As VirtualPathData, fragment As String) As String

Parametry

protocol
String

Protokol pro adresu URL, například "http" nebo "https".

host
String

Název hostitele pro adresu URL.

pathData
VirtualPathData

Hodnota VirtualPathData

fragment
String

Fragment adresy URL.

Návraty

Vygenerovaná adresa URL.

Platí pro