ListDataBindEventHandler 代理人

定義

警告

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 控制項之 List 事件的方法。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

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

參數

sender
Object

事件的來源:List

e
ListDataBindEventArgs

ListDataBindEventArgs,其中包含事件資料。

屬性

備註

控制件 List 包含專案的集合。 這些專案屬於 MobileListItem 類別。 提供預設轉譯時, List 控件會 MobileListItem 使用 其 Text 屬性來表示 物件。 在樣板化轉譯中,範本可以轉譯物件或相關聯數據系結物件的任何所需屬性 MobileListItem

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

擴充方法

GetMethodInfo(Delegate)
已淘汰.

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

適用於

另請參閱