UrlResolutionTagHelper.TryResolveUrl UrlResolutionTagHelper.TryResolveUrl UrlResolutionTagHelper.TryResolveUrl Method

Definition

Overloads

TryResolveUrl(String, IHtmlContent) TryResolveUrl(String, IHtmlContent) TryResolveUrl(String, IHtmlContent)

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

TryResolveUrl(String, String) TryResolveUrl(String, String) TryResolveUrl(String, String)

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

TryResolveUrl(String, IHtmlContent) TryResolveUrl(String, IHtmlContent) TryResolveUrl(String, IHtmlContent)

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

protected bool TryResolveUrl (string url, out Microsoft.AspNetCore.Html.IHtmlContent resolvedUrl);
member this.TryResolveUrl : string *  -> bool
Protected Function TryResolveUrl (url As String, ByRef resolvedUrl As IHtmlContent) As Boolean

Parameters

url
String String String

The URL to resolve.

resolvedUrl
IHtmlContent IHtmlContent 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.

TryResolveUrl(String, String) TryResolveUrl(String, String) TryResolveUrl(String, String)

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

protected bool TryResolveUrl (string url, out string resolvedUrl);
member this.TryResolveUrl : string *  -> bool
Protected Function TryResolveUrl (url As String, ByRef resolvedUrl As String) As Boolean

Parameters

url
String String String

The URL to resolve.

resolvedUrl
String String 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