共用方式為


FakeHostingExtensions.GetFakeRedactionCollector(IHost) 方法

定義

取得對象,報告執行的所有修訂。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Compliance::Testing::FakeRedactionCollector ^ GetFakeRedactionCollector(Microsoft::Extensions::Hosting::IHost ^ host);
public static Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector GetFakeRedactionCollector (this Microsoft.Extensions.Hosting.IHost host);
static member GetFakeRedactionCollector : Microsoft.Extensions.Hosting.IHost -> Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector
<Extension()>
Public Function GetFakeRedactionCollector (host As IHost) As FakeRedactionCollector

參數

host
IHost

IHost 執行個體。

傳回

追蹤記錄訊息上所執行修訂的收集器。

例外狀況

提供者中沒有收集器。

適用於