UrlHelper.GenerateUrl(String, String, VirtualPathData, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates the URL using the specified components.
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
Parameters
- protocol
- String
The protocol for the URL, such as "http" or "https".
- host
- String
The host name for the URL.
- pathData
- VirtualPathData
The VirtualPathData.
- fragment
- String
The fragment for the URL.
Returns
The generated URL.