UrlResolutionTagHelper.TryResolveUrl Method

Definition

Overloads

TryResolveUrl(String, IHtmlContent)

Tries to resolve the given url value relative to the application's 'webroot' setting.

TryResolveUrl(String, String)

Tries to resolve the given url value relative to the application's 'webroot' setting.

TryResolveUrl(String, IHtmlContent)

Source:
UrlResolutionTagHelper.cs
Source:
UrlResolutionTagHelper.cs

Tries to resolve the given url value relative to the application's 'webroot' setting.

protected:
 bool TryResolveUrl(System::String ^ url, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Html::IHtmlContent ^ % resolvedUrl);
protected bool TryResolveUrl (string url, out Microsoft.AspNetCore.Html.IHtmlContent resolvedUrl);
protected bool TryResolveUrl (string url, out Microsoft.AspNetCore.Html.IHtmlContent? resolvedUrl);
member this.TryResolveUrl : string * IHtmlContent -> bool
Protected Function TryResolveUrl (url As String, ByRef resolvedUrl As IHtmlContent) As Boolean

Parameters

url
String

The URL to resolve.

resolvedUrl
IHtmlContent

Absolute URL beginning with the application's virtual root. null if url could not be resolved.

Returns

true if the url could be resolved; false otherwise.

Applies to

TryResolveUrl(String, String)

Source:
UrlResolutionTagHelper.cs
Source:
UrlResolutionTagHelper.cs

Tries to resolve the given url value relative to the application's 'webroot' setting.

protected:
 bool TryResolveUrl(System::String ^ url, [Runtime::InteropServices::Out] System::String ^ % resolvedUrl);
protected bool TryResolveUrl (string url, out string resolvedUrl);
protected bool TryResolveUrl (string url, out string? resolvedUrl);
member this.TryResolveUrl : string * string -> bool
Protected Function TryResolveUrl (url As String, ByRef resolvedUrl As String) As Boolean

Parameters

url
String

The URL to resolve.

resolvedUrl
String

Absolute URL beginning with the application's virtual root. null if url could not be resolved.

Returns

true if the url could be resolved; false otherwise.

Applies to