Aracılığıyla paylaş


EncoderServiceCollectionExtensions.AddWebEncoders Yöntem

Tanım

Aşırı Yüklemeler

AddWebEncoders(IServiceCollection)

belirtilen servicesöğesine ve UrlEncoderJavaScriptEncoder eklerHtmlEncoder.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

belirtilen servicesöğesine ve UrlEncoderJavaScriptEncoder eklerHtmlEncoder.

AddWebEncoders(IServiceCollection)

Kaynak:
EncoderServiceCollectionExtensions.cs
Kaynak:
EncoderServiceCollectionExtensions.cs

belirtilen servicesöğesine ve UrlEncoderJavaScriptEncoder eklerHtmlEncoder.

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

Parametreler

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Kaynak:
EncoderServiceCollectionExtensions.cs
Kaynak:
EncoderServiceCollectionExtensions.cs

belirtilen servicesöğesine ve UrlEncoderJavaScriptEncoder eklerHtmlEncoder.

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

Parametreler

setupAction
Action<WebEncoderOptions>

Sağlanan öğesini yapılandırmak için birAction<T>.WebEncoderOptions

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır