FakeRedactor.Create(FakeRedactorOptions, FakeRedactionCollector) 方法

定义

初始化 FakeRedactor 类的新实例。

public static Microsoft.Extensions.Compliance.Testing.FakeRedactor Create (Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions? options = default, Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector? collector = default);
static member Create : Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions * Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector -> Microsoft.Extensions.Compliance.Testing.FakeRedactor
Public Shared Function Create (Optional options As FakeRedactorOptions = Nothing, Optional collector As FakeRedactionCollector = Nothing) As FakeRedactor

参数

options
FakeRedactorOptions

用于控制重修器行为的选项。

collector
FakeRedactionCollector

收集有关已编修的值的信息。

返回

的新实例 FakeRedactor

适用于