Partilhar via


RedactionServiceCollectionExtensions.AddRedaction Método

Definição

Sobrecargas

AddRedaction(IServiceCollection)

Registra uma implementação de IRedactorProvider no IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Registra uma implementação de IRedactorProvider no IServiceCollection e configura os refatores disponíveis.

AddRedaction(IServiceCollection)

Origem:
RedactionServiceCollectionExtensions.cs
Origem:
RedactionServiceCollectionExtensions.cs

Registra uma implementação de IRedactorProvider no 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

Instância de IServiceCollection usada para configurar a redação.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Origem:
RedactionServiceCollectionExtensions.cs
Origem:
RedactionServiceCollectionExtensions.cs

Registra uma implementação de IRedactorProvider no IServiceCollection e configura os refatores disponíveis.

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

Instância de IServiceCollection usada para configurar a redação.

configure
Action<IRedactionBuilder>

Função de configuração para IRedactionBuilder.

Retornos

O valor de services.

Exceções

configure é null.

Aplica-se a