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

已删除记录器提供程序的日志记录生成器。

适用于