Sdílet prostřednictvím


EncoderServiceCollectionExtensions.AddWebEncoders Metoda

Definice

Přetížení

AddWebEncoders(IServiceCollection)

Přidá HtmlEncodera JavaScriptEncoderUrlEncoder do zadaného services.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Přidá HtmlEncodera JavaScriptEncoderUrlEncoder do zadaného services.

AddWebEncoders(IServiceCollection)

Zdroj:
EncoderServiceCollectionExtensions.cs
Zdroj:
EncoderServiceCollectionExtensions.cs

Přidá HtmlEncodera JavaScriptEncoderUrlEncoder do zadaného services.

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

Parametry

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Zdroj:
EncoderServiceCollectionExtensions.cs
Zdroj:
EncoderServiceCollectionExtensions.cs

Přidá HtmlEncodera JavaScriptEncoderUrlEncoder do zadaného services.

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

Parametry

setupAction
Action<WebEncoderOptions>

Pro Action<T> konfiguraci zadaného WebEncoderOptionsobjektu .

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro