Partager via


RedactionServiceCollectionExtensions.AddRedaction Méthode

Définition

Surcharges

AddRedaction(IServiceCollection)

Inscrit une implémentation de IRedactorProvider dans le IServiceCollection.

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Inscrit une implémentation de IRedactorProvider dans et IServiceCollection configure les redacteurs disponibles.

AddRedaction(IServiceCollection)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

Inscrit une implémentation de IRedactorProvider dans le 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

Paramètres

services
IServiceCollection

Instance de IServiceCollection utilisée pour configurer la rédaction.

Retours

la valeur de la propriété services ;

Exceptions

services a la valeur null.

S’applique à

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

Inscrit une implémentation de IRedactorProvider dans et IServiceCollection configure les redacteurs disponibles.

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

Paramètres

services
IServiceCollection

Instance de IServiceCollection utilisée pour configurer la rédaction.

configure
Action<IRedactionBuilder>

Fonction de configuration pour IRedactionBuilder.

Retours

la valeur de la propriété services ;

Exceptions

configure a la valeur null.

S’applique à