Bagikan melalui


HttpClientBuilderExtensions.RemoveAllLoggers(IHttpClientBuilder) Metode

Definisi

Menghapus semua pencatat yang ditambahkan sebelumnya untuk yang bernama HttpClient, termasuk yang default.

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

Parameter

Mengembalikan

Yang IHttpClientBuilder dapat digunakan untuk mengonfigurasi klien.

Berlaku untuk