RedactionServiceCollectionExtensions.AddRedaction 方法

定义

重载

AddRedaction(IServiceCollection)

IServiceCollection中注册 IRedactorProvider 的实现。

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

IServiceCollection 中注册 IRedactorProvider 的实现,并配置可用的 redactors。

AddRedaction(IServiceCollection)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

IServiceCollection中注册 IRedactorProvider 的实现。

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

参数

services
IServiceCollection

用于配置修订的 IServiceCollection 实例。

返回

services的值。

例外

services null

适用于

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

Source:
RedactionServiceCollectionExtensions.cs
Source:
RedactionServiceCollectionExtensions.cs

IServiceCollection 中注册 IRedactorProvider 的实现,并配置可用的 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

参数

services
IServiceCollection

用于配置修订的 IServiceCollection 实例。

configure
Action<IRedactionBuilder>

IRedactionBuilder的配置函数。

返回

services的值。

例外

configure null

适用于