다음을 통해 공유


RedactionServiceCollectionExtensions.AddRedaction Method

Definition

Overloads

AddRedaction(IServiceCollection)

Registers an implementation of IRedactorProvider in the IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Registers an implementation of IRedactorProvider in the IServiceCollection and configures available redactors.

AddRedaction(IServiceCollection)

Source:
RedactionServiceCollectionExtensions.cs

Registers an implementation of IRedactorProvider in the 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

Parameters

services
IServiceCollection

Instance of IServiceCollection used to configure redaction.

Returns

The value of services.

Exceptions

services is null.

Applies to

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Source:
RedactionServiceCollectionExtensions.cs

Registers an implementation of IRedactorProvider in the IServiceCollection and configures available redactors.

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

Parameters

services
IServiceCollection

Instance of IServiceCollection used to configure redaction.

configure
Action<IRedactionBuilder>

Configuration function for IRedactionBuilder.

Returns

The value of services.

Exceptions

configure is null.

Applies to