FilterConsumerInitEventHandler delegate
NOTE: This API is now obsolete.
表示將處理由 Web 組件實作IFilterConsumer介面引發FilterConsumerInit事件的方法。
Namespace: Microsoft.SharePoint.WebPartPages.Communication
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartParameters instead")> _
Public Delegate Sub FilterConsumerInitEventHandler ( _
sender As Object, _
e As FilterConsumerInitEventArgs _
)
'用途
Dim instance As New FilterConsumerInitEventHandler(AddressOf HandlerMethod)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartParameters instead")]
public delegate void FilterConsumerInitEventHandler(
Object sender,
FilterConsumerInitEventArgs e
)
參數
sender
Type: System.Object事件網頁組件的來源。
e
Type: Microsoft.SharePoint.WebPartPages.Communication.FilterConsumerInitEventArgsFilterConsumerInitEventArgs 包含事件資料。
備註
當您建立FilterConsumerInitEventHandler委派時,會識別處理事件的方法。若要事件與事件處理常式產生關聯,請將委派的執行個體加入事件。除非您移除委派,否則每當事件發生時,會呼叫事件處理常式。
Examples
下列程式碼範例會顯示從WebPartclass實作IFilterConsumer介面的型別FilterConsumerInitEventHandler的事件的宣告。顯示的事件處理常式實作的程式碼範例是主題中的FilterConsumerInit事件。顯示IFilterConsumer介面的完整實作的程式碼範例是IFilterConsumer主題中。
' Step #3: Declare the IFilterConsumer Event
' Because this class implements the IFilterConsumer interface, it must
' declare the interface member FilterConsumerInit.
Public Event FilterConsumerInit As FilterConsumerInitEventHandler Implements IFilterConsumer.FilterConsumerInit
// Step #3: Declare the IFilterConsumer Event
// Because this class implements the IFilterConsumer interface, it must
// declare the interface member FilterConsumerInit.
public event FilterConsumerInitEventHandler FilterConsumerInit;