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
元素来调整此机制。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈