UrlResolutionTagHelper.TryResolveUrl Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
TryResolveUrl(String, IHtmlContent) |
Tenta resolve o valor fornecido |
TryResolveUrl(String, String) |
Tenta resolve o valor fornecido |
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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de