WebEventManager.Flush 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對 healthMonitoring
區段中的提供者,清除目前已緩衝的事件。
多載
Flush() |
清除 |
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 則會擲回例外狀況。