RedactionServiceCollectionExtensions.AddRedaction Metodo

Definizione

Overload

AddRedaction(IServiceCollection)

Registra un'implementazione di IRedactorProvider nel IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Registra un'implementazione di IRedactorProvider nel IServiceCollection e configura i redactor disponibili.

AddRedaction(IServiceCollection)

Origine:
RedactionServiceCollectionExtensions.cs
Origine:
RedactionServiceCollectionExtensions.cs

Registra un'implementazione di IRedactorProvider nel 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

Parametri

services
IServiceCollection

Istanza di IServiceCollection usata per configurare la ridistribuzione.

Restituisce

Valore di services.

Eccezioni

services è null.

Si applica a

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Origine:
RedactionServiceCollectionExtensions.cs
Origine:
RedactionServiceCollectionExtensions.cs

Registra un'implementazione di IRedactorProvider nel IServiceCollection e configura i redactor disponibili.

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

Parametri

services
IServiceCollection

Istanza di IServiceCollection usata per configurare la ridistribuzione.

configure
Action<IRedactionBuilder>

Funzione di configurazione per IRedactionBuilder.

Restituisce

Valore di services.

Eccezioni

configure è null.

Si applica a