Sdílet prostřednictvím


RedactionServiceCollectionExtensions.AddRedaction Metoda

Definice

Přetížení

AddRedaction(IServiceCollection)

Registruje implementaci IRedactorProvider v .IServiceCollection

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Zaregistruje implementaci IRedactorProvider v a IServiceCollection nakonfiguruje dostupné redaktory.

AddRedaction(IServiceCollection)

Zdroj:
RedactionServiceCollectionExtensions.cs
Zdroj:
RedactionServiceCollectionExtensions.cs

Registruje implementaci IRedactorProvider v .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

Parametry

services
IServiceCollection

Instance slouží IServiceCollection ke konfiguraci redakce.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Zdroj:
RedactionServiceCollectionExtensions.cs
Zdroj:
RedactionServiceCollectionExtensions.cs

Zaregistruje implementaci IRedactorProvider v a IServiceCollection nakonfiguruje dostupné redaktory.

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

Parametry

services
IServiceCollection

Instance slouží IServiceCollection ke konfiguraci redakce.

configure
Action<IRedactionBuilder>

Konfigurační funkce pro IRedactionBuilder.

Návraty

Hodnota .services

Výjimky

configure je null.

Platí pro