EncoderServiceCollectionExtensions.AddWebEncoders Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddWebEncoders(IServiceCollection) |
HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukan |
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>) |
HtmlEncoderMenambahkan , JavaScriptEncoder dan UrlEncoder ke yang ditentukan |
AddWebEncoders(IServiceCollection)
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
- services
- IServiceCollection
Mengembalikan
IServiceCollection Sehingga panggilan tambahan dapat dirangkai.
Berlaku untuk
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)
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
- services
- IServiceCollection
- setupAction
- Action<WebEncoderOptions>
Action<T> untuk mengonfigurasi yang disediakanWebEncoderOptions.
Mengembalikan
IServiceCollection Sehingga panggilan tambahan dapat dirangkai.