Share via


UrlResolutionTagHelper.TryResolveUrl Método

Definição

Sobrecargas

TryResolveUrl(String, IHtmlContent)

Tenta resolve o valor fornecido url em relação à configuração 'webroot' do aplicativo.

TryResolveUrl(String, String)

Tenta resolve o valor fornecido url em relação à configuração 'webroot' do aplicativo.

TryResolveUrl(String, IHtmlContent)

Origem:
UrlResolutionTagHelper.cs
Origem:
UrlResolutionTagHelper.cs

Tenta resolve o valor fornecido url em relação à configuração 'webroot' do aplicativo.

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

Parâmetros

url
String

A URL a ser resolve.

resolvedUrl
IHtmlContent

URL absoluta começando com a raiz virtual do aplicativo. null se url não foi possível resolver.

Retornos

true se o url puder ser resolvido; false caso contrário, .

Aplica-se a

TryResolveUrl(String, String)

Origem:
UrlResolutionTagHelper.cs
Origem:
UrlResolutionTagHelper.cs

Tenta resolve o valor fornecido url em relação à configuração 'webroot' do aplicativo.

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

Parâmetros

url
String

A URL a ser resolve.

resolvedUrl
String

URL absoluta começando com a raiz virtual do aplicativo. null se url não foi possível resolver.

Retornos

true se o url puder ser resolvido; false caso contrário, .

Aplica-se a