LoadItemsEventHandler 代理人

定義

警告

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

表示方法,處理 ItemDataBind 控制項的 SelectionList 事件。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

C#
public delegate void LoadItemsEventHandler(object sender, LoadItemsEventArgs e);
C#
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public delegate void LoadItemsEventHandler(object sender, LoadItemsEventArgs e);

參數

sender
Object

事件的來源,即 SelectionList 控制項。

e
LoadItemsEventArgs

包含事件資料的 ListDataBindEventArgs 物件。

屬性

備註

清單控制件包含專案的集合。 這些專案屬於 MobileListItem 類別。 提供預設轉譯時,清單控制件會 MobileListItem 以其 Text 屬性表示 。 在範本化轉譯中,範本可以轉譯或相關聯數據綁定物件的任何所需屬性 MobileListItem 。 如果專案是系結至 MobileListItem 對象的數據,則會 ItemDataBind 引發 事件。 此時,處理程式可以從任意運算式設定 對象的屬性 MobileListItem

當您建立 ListDataBindEventHandler 控件的 SelectionList 委派時,您會識別將處理事件的方法。 控制件 SelectionList 會在產生專案事件時通知處理程式。 若要使事件與您的事件處理常式產生關聯,請將委派的執行個體 (Instance) 加入至事件。 除非移除委派,否則每次發生事件時都會呼叫事件處理常式。

擴充方法

GetMethodInfo(Delegate)
已淘汰.

取得表示特定委派所代表之方法的物件。

適用於

產品 版本 (已過時)
.NET Framework 1.1, 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

另請參閱