語言

WebEventManager.Flush 方法

定義

清除目前緩衝中的所有服務提供者在該 healthMonitoring 區段的事件。

多載

名稱 Description
Flush()

清除該區段中所有提供者 healthMonitoring 的事件緩衝區。

Flush(String)

清除指定提供者的事件緩衝區。

Flush()

清除該區段中所有提供者 healthMonitoring 的事件緩衝區。

public:
 static void Flush();
public static void Flush();
static member Flush : unit -> unit
Public Shared Sub Flush ()

備註

此 Flush 方法會清除設定區中所有提供者 healthMonitoring 的事件緩衝區。 若不存在提供者,則不會緩衝任何事件。 然而,如果提供者存在,該區段中每個提供者 healthMonitoring 的事件緩衝區會被清除。

適用於

Flush(String)

清除指定提供者的事件緩衝區。

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)

參數

providerName
String

提供者的名稱。

例外狀況

providerName 與現有供應商不匹配。

備註

此 Flush 方法會清除指定提供者的事件緩衝區。 配置的該 healthMonitoring 區段必須包含指定的提供者,才能清除事件緩衝區。 若提供者名稱與該 healthMonitoring 區段中現有提供者不符, ArgumentException 則會拋出例外。

適用於