Compartir a través de


RedactionServiceCollectionExtensions.AddRedaction Método

Definición

Sobrecargas

AddRedaction(IServiceCollection)

Registra una implementación de IRedactorProvider en el IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Registra una implementación de IRedactorProvider en el IServiceCollection y configura los redactores disponibles.

AddRedaction(IServiceCollection)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

Registra una implementación de IRedactorProvider en el 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

Parámetros

services
IServiceCollection

Instancia de IServiceCollection usada para configurar la redacción.

Devoluciones

Valor de services.

Excepciones

services es null.

Se aplica a

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

Registra una implementación de IRedactorProvider en el IServiceCollection y configura los redactores disponibles.

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

Parámetros

services
IServiceCollection

Instancia de IServiceCollection usada para configurar la redacción.

configure
Action<IRedactionBuilder>

Función de configuración para IRedactionBuilder.

Devoluciones

Valor de services.

Excepciones

configure es null.

Se aplica a