Udostępnij za pośrednictwem


EncoderServiceCollectionExtensions.AddWebEncoders Metoda

Definicja

Przeciążenia

AddWebEncoders(IServiceCollection)

Dodaje HtmlEncoderelement JavaScriptEncoder i UrlEncoder do określonego serviceselementu .

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Dodaje HtmlEncoderelement JavaScriptEncoder i UrlEncoder do określonego serviceselementu .

AddWebEncoders(IServiceCollection)

Źródło:
EncoderServiceCollectionExtensions.cs
Źródło:
EncoderServiceCollectionExtensions.cs
Źródło:
EncoderServiceCollectionExtensions.cs

Dodaje HtmlEncoderelement JavaScriptEncoder i UrlEncoder do określonego serviceselementu .

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

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Źródło:
EncoderServiceCollectionExtensions.cs
Źródło:
EncoderServiceCollectionExtensions.cs
Źródło:
EncoderServiceCollectionExtensions.cs

Dodaje HtmlEncoderelement JavaScriptEncoder i UrlEncoder do określonego serviceselementu .

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>

Element Action<T> do skonfigurowania podanego WebEncoderOptionselementu .

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy