共用方式為


HttpClientBuilderExtensions.RemoveAllLoggers(IHttpClientBuilder) 方法

定義

拿掉所有先前針對具名 HttpClient的記錄器,包括預設記錄器。

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

參數

傳回

可以用於設定用戶端的 IHttpClientBuilder

適用於