Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RedactionServiceCollectionExtensions.AddRedaction Method

Definition

Namespace:
Microsoft.Extensions.DependencyInjection
Assembly:
Microsoft.Extensions.Compliance.Redaction.dll
Package:
Microsoft.Extensions.Compliance.Redaction v10.7.0

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
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
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
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


Feedback

Was this page helpful?