Bagikan melalui


EncoderServiceCollectionExtensions.AddWebEncoders Metode

Definisi

Overload

AddWebEncoders(IServiceCollection)

HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukanservices.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukanservices.

AddWebEncoders(IServiceCollection)

Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs

HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukanservices.

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

Parameter

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs
Sumber:
EncoderServiceCollectionExtensions.cs

HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukanservices.

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

Parameter

setupAction
Action<WebEncoderOptions>

Action<T> untuk mengonfigurasi yang disediakanWebEncoderOptions.

Mengembalikan

IServiceCollection Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk