다음을 통해 공유


RedactionServiceCollectionExtensions.AddRedaction 메서드

정의

오버로드

AddRedaction(IServiceCollection)

에 의 IRedactorProvider 구현을 등록합니다 IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

에서 IServiceCollectionIRedactorProvider 구현을 등록하고 사용 가능한 편집기를 구성합니다.

AddRedaction(IServiceCollection)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

에 의 IRedactorProvider 구현을 등록합니다 IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection) As IServiceCollection

매개 변수

services
IServiceCollection

편집을 구성하는 데 사용되는 의 IServiceCollection 인스턴스입니다.

반환

services의 값

예외

servicesnull입니다.

적용 대상

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

에서 IServiceCollectionIRedactorProvider 구현을 등록하고 사용 가능한 편집기를 구성합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Redaction::IRedactionBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> configure);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection, configure As Action(Of IRedactionBuilder)) As IServiceCollection

매개 변수

services
IServiceCollection

편집을 구성하는 데 사용되는 의 IServiceCollection 인스턴스입니다.

configure
Action<IRedactionBuilder>

에 대한 구성 함수입니다 IRedactionBuilder.

반환

services의 값

예외

configurenull입니다.

적용 대상