語言

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 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public delegate void LoadItemsEventHandler(System::Object ^ sender, LoadItemsEventArgs ^ e);
public delegate void LoadItemsEventHandler(object sender, LoadItemsEventArgs e);
[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);
type LoadItemsEventHandler = delegate of obj * LoadItemsEventArgs -> unit
[<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.")>]
type LoadItemsEventHandler = delegate of obj * LoadItemsEventArgs -> unit
Public Delegate Sub LoadItemsEventHandler(sender As Object, e As LoadItemsEventArgs)

參數

sender
Object

事件的源頭,一個 SelectionList 控制組。

e
LoadItemsEventArgs

一個 ListDataBindEventArgs 包含事件資料的物件。

屬性

備註

清單控制項包含一組項目。 這些物品屬於該 MobileListItem 級別。 在提供預設渲染時,列表控制項以其MobileListItem屬性來表示 aText。 在模板渲染中,模板可以渲染任何想要的 MobileListItem 屬性,或相關資料綁定物件。 若項目與物件有資料綁定 MobileListItem ,事件 ItemDataBind 會被觸發。 此時,處理器可從任意表達式設定物件屬性 MobileListItem 。

當你為控制組建立 ListDataBindEventHandler 代理時,你會 SelectionList 確定處理該事件的方法。 SelectionList控制項會在產生物品事件時通知處理器。 要將事件與你的事件處理器關聯,請將該代理的實例加入事件中。 除非移除代理,否則事件發生時會呼叫事件處理程序。

擴充方法

名稱 Description
GetMethodInfo(Delegate)
已淘汰.

取得一個代表指定代理所代表方法的物件。

適用於

另請參閱