Dibaca dalam bahasa Inggeris Edit

Kongsi melalui


WebEventManager.Flush Method

Definition

Flushes all currently buffered events for providers that are in the healthMonitoring section.

Overloads

Flush()

Flushes the event buffer for all providers that are in the healthMonitoring section.

Flush(String)

Flushes the event buffer for the specified provider.

Flush()

Flushes the event buffer for all providers that are in the healthMonitoring section.

public static void Flush ();

Remarks

The Flush method flushes the event buffer for all providers that are in the healthMonitoring section of the configuration. If no providers exist, no events are ever buffered. However, if providers do exist, the event buffer for each provider in the healthMonitoring section is flushed.

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Flush(String)

Flushes the event buffer for the specified provider.

public static void Flush (string providerName);

Parameters

providerName
String

The name of the provider.

Exceptions

providerName does not match any of the existing providers.

Remarks

The Flush method flushes the event buffer for the specified provider. The healthMonitoring section of the configuration must contain the specified provider in order to flush the event buffer. If the provider name does not match any of the existing providers in the healthMonitoring section, an ArgumentException exception is thrown.

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1