RedactionServiceCollectionExtensions.AddRedaction Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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)
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>)
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
.