다음을 통해 공유


EncoderServiceCollectionExtensions.AddWebEncoders 메서드

정의

오버로드

AddWebEncoders(IServiceCollection)

지정된 servicesHtmlEncoder, JavaScriptEncoderUrlEncoder를 추가합니다.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

지정된 servicesHtmlEncoder, JavaScriptEncoderUrlEncoder를 추가합니다.

AddWebEncoders(IServiceCollection)

Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs

지정된 servicesHtmlEncoder, JavaScriptEncoderUrlEncoder를 추가합니다.

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>)

Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs
Source:
EncoderServiceCollectionExtensions.cs

지정된 servicesHtmlEncoder, JavaScriptEncoderUrlEncoder를 추가합니다.

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입니다.

적용 대상