FakeRedactionServiceCollectionExtensions.AddFakeRedaction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddFakeRedaction(IServiceCollection) |
注册始终返回假重修器实例的假重设函数提供程序。 |
AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>) |
注册始终返回假重修器实例的假重设函数提供程序。 |
AddFakeRedaction(IServiceCollection)
注册始终返回假重修器实例的假重设函数提供程序。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection) As IServiceCollection
参数
- services
- IServiceCollection
用于注册假编修类的容器。
返回
services
的值。
例外
services
为 null
。
适用于
AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)
注册始终返回假重修器实例的假重设函数提供程序。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Testing::FakeRedactorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> configure);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection, configure As Action(Of FakeRedactorOptions)) As IServiceCollection
参数
- services
- IServiceCollection
用于注册假编修类的容器。
- configure
- Action<FakeRedactorOptions>
配置假重修器。
返回
services
的值。
例外
services
或 configure
> 为 null
。