Condividi tramite


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

Definizione

Genera l'URL usando i componenti specificati.

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

Parametri

protocol
String

Protocollo per l'URL, ad esempio "http" o "https".

host
String

Nome host per l'URL.

pathData
VirtualPathData

Oggetto VirtualPathData.

fragment
String

Frammento per l'URL.

Restituisce

URL generato.

Si applica a