WebEventBufferFlushInfo.Events 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會收到目前訊息中的事件集合。
public:
property System::Web::Management::WebBaseEventCollection ^ Events { System::Web::Management::WebBaseEventCollection ^ get(); };
public System.Web.Management.WebBaseEventCollection Events { get; }
member this.Events : System.Web.Management.WebBaseEventCollection
Public ReadOnly Property Events As WebBaseEventCollection
屬性值
目前 WebBaseEventCollection 訊息中包含的事件。
範例
以下程式碼範例說明如何使用該 Events 屬性。 此程式碼範例是本類別更大範例 BufferedWebEventProvider 的一部分。
private WebBaseEventCollection GetEvents(
WebEventBufferFlushInfo flushInfo)
{
return flushInfo.Events;
}
Private Function GetEvents( _
ByVal flushInfo As WebEventBufferFlushInfo) _
As WebBaseEventCollection
Return flushInfo.Events
End Function 'GetEvents
備註
由於緩衝,通常會在一則訊息中傳送多個事件。