RedactionServiceCollectionExtensions.AddRedaction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddRedaction(IServiceCollection) |
在 IServiceCollection中注册 IRedactorProvider 的实现。 |
AddRedaction(IServiceCollection, Action<IRedactionBuilder>) |
在 IServiceCollection 中注册 IRedactorProvider 的实现,并配置可用的 redactors。 |
AddRedaction(IServiceCollection)
在 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>)
在 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
。