次の方法で共有


EncoderServiceCollectionExtensions.AddWebEncoders メソッド

定義

オーバーロード

AddWebEncoders(IServiceCollection)

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

AddWebEncoders(IServiceCollection)

ソース:
EncoderServiceCollectionExtensions.cs
ソース:
EncoderServiceCollectionExtensions.cs

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

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

パラメーター

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

ソース:
EncoderServiceCollectionExtensions.cs
ソース:
EncoderServiceCollectionExtensions.cs

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

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

パラメーター

setupAction
Action<WebEncoderOptions>

指定した WebEncoderOptions を構成する Action<T>

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象