Udostępnij za pośrednictwem


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

Definicja

Generuje adres URL przy użyciu określonych składników.

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

Protokół adresu URL, taki jak "http" lub "https".

host
String

Nazwa hosta adresu URL.

pathData
VirtualPathData

Element VirtualPathData.

fragment
String

Fragment adresu URL.

Zwraca

Wygenerowany adres URL.

Dotyczy