Edytuj

Udostępnij za pośrednictwem


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();
public static void Flush ();
static member Flush : unit -> unit
Public Shared Sub 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

Flush(String)

Flushes the event buffer for the specified provider.

public:
 static void Flush(System::String ^ providerName);
public static void Flush (string providerName);
static member Flush : string -> unit
Public Shared Sub Flush (providerName As String)

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