EncoderServiceCollectionExtensions.AddWebEncoders 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
AddWebEncoders(IServiceCollection) |
Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao |
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>) |
Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao |
AddWebEncoders(IServiceCollection)
Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao services
especificado.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddWebEncoders(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebEncoders (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddWebEncoders : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddWebEncoders (services As IServiceCollection) As IServiceCollection
Parâmetros
- services
- IServiceCollection
Retornos
O IServiceCollection para que chamadas adicionais possam ser encadeadas.
Aplica-se a
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)
Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao services
especificado.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddWebEncoders(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::WebEncoders::WebEncoderOptions ^> ^ setupAction);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebEncoders (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.WebEncoders.WebEncoderOptions> setupAction);
static member AddWebEncoders : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.WebEncoders.WebEncoderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddWebEncoders (services As IServiceCollection, setupAction As Action(Of WebEncoderOptions)) As IServiceCollection
Parâmetros
- services
- IServiceCollection
- setupAction
- Action<WebEncoderOptions>
Um Action<T> para configurar o WebEncoderOptions fornecido.
Retornos
O IServiceCollection para que chamadas adicionais possam ser encadeadas.