WebEventBufferFlushInfo.EventsDiscardedSinceLastNotification 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得上次告知以來卸除的事件數目。
public:
property int EventsDiscardedSinceLastNotification { int get(); };
public int EventsDiscardedSinceLastNotification { get; }
member this.EventsDiscardedSinceLastNotification : int
Public ReadOnly Property EventsDiscardedSinceLastNotification As Integer
屬性值
上次告知以來緩衝機制卸除的事件數目。
範例
下列程式碼範例示範如何使用 EventsDiscardedSinceLastNotification 屬性。 此程式碼範例是針對 類別提供的較大範例的 BufferedWebEventProvider 一部分。
private int GetEventsDiscardedSinceLastNotification(
WebEventBufferFlushInfo flushInfo)
{
return flushInfo.EventsDiscardedSinceLastNotification;
}
Private Function GetEventsDiscardedSinceLastNotification( _
ByVal flushInfo _
As WebEventBufferFlushInfo) As Integer
Return flushInfo.EventsDiscardedSinceLastNotification
End Function 'GetEventsDiscardedSinceLastNotification
備註
根據設計,緩衝機制可能會卸載某些事件,以跟上傳入事件的步調。 使用者可藉由正確修改 bufferModes
組態區段中的 healthMonitoring
元素來調整此機制。