Freigeben über


RedactionServiceCollectionExtensions.AddRedaction Methode

Definition

Überlädt

AddRedaction(IServiceCollection)

Registriert eine Implementierung von IRedactorProvider in IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Registriert eine Implementierung von IRedactorProvider in und konfiguriert verfügbare IServiceCollection Redactors.

AddRedaction(IServiceCollection)

Quelle:
RedactionServiceCollectionExtensions.cs
Quelle:
RedactionServiceCollectionExtensions.cs

Registriert eine Implementierung von IRedactorProvider in 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

Parameter

services
IServiceCollection

Instanz von, die zum Konfigurieren der IServiceCollection Redaction verwendet wird.

Gibt zurück

Der Wert von services.

Ausnahmen

services ist null

Gilt für:

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Quelle:
RedactionServiceCollectionExtensions.cs
Quelle:
RedactionServiceCollectionExtensions.cs

Registriert eine Implementierung von IRedactorProvider in und konfiguriert verfügbare IServiceCollection 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

Parameter

services
IServiceCollection

Instanz von, die zum Konfigurieren der IServiceCollection Redaction verwendet wird.

configure
Action<IRedactionBuilder>

Konfigurationsfunktion für IRedactionBuilder.

Gibt zurück

Der Wert von services.

Ausnahmen

configure ist null

Gilt für: