RedactionServiceCollectionExtensions.AddRedaction Method
Definition
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
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)
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>)
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
.NET