EncoderServiceCollectionExtensions.AddWebEncoders Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddWebEncoders(IServiceCollection) |
Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto |
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>) |
Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto |
AddWebEncoders(IServiceCollection)
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>)
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
- services
- IServiceCollection
- setupAction
- Action<WebEncoderOptions>
Action<T> para configurar el objeto WebEncoderOptions proporcionado.
Devoluciones
La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.