Partilhar via


EncoderServiceCollectionExtensions.AddWebEncoders Método

Definição

Sobrecargas

AddWebEncoders(IServiceCollection)

Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao services especificado.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Adiciona HtmlEncoder, JavaScriptEncoder e UrlEncoder ao services especificado.

AddWebEncoders(IServiceCollection)

Origem:
EncoderServiceCollectionExtensions.cs
Origem:
EncoderServiceCollectionExtensions.cs
Origem:
EncoderServiceCollectionExtensions.cs

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

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Origem:
EncoderServiceCollectionExtensions.cs
Origem:
EncoderServiceCollectionExtensions.cs
Origem:
EncoderServiceCollectionExtensions.cs

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

setupAction
Action<WebEncoderOptions>

Um Action<T> para configurar o WebEncoderOptions fornecido.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a