共用方式為


LoggingBuilderExtensions.ClearProviders(ILoggingBuilder) 方法

定義

builder 移除所有記錄器提供者。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ ClearProviders(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder ClearProviders (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member ClearProviders : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function ClearProviders (builder As ILoggingBuilder) As ILoggingBuilder

參數

builder
ILoggingBuilder

要從中移除記錄提供者的記錄產生器。

傳回

ILoggingBuilder

已移除具有記錄器提供者的記錄產生器。

適用於