Compartir a través de


EncoderServiceCollectionExtensions.AddWebEncoders Método

Definición

Sobrecargas

AddWebEncoders(IServiceCollection)

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto services especificado.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto services especificado.

AddWebEncoders(IServiceCollection)

Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto 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

El parámetro de cadena de consulta IServiceCollection.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto 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>

Action<T> para configurar el objeto WebEncoderOptions proporcionado.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a