RedactionServiceCollectionExtensions.AddRedaction Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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)
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>)
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
.