ערוך

שתף באמצעות


ListDataBindEventHandler Delegate

Definition

Caution

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.

Represents the method that handles the ItemDataBind event of a List control. For information about how to develop ASP.NET mobile applications, see 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)

Parameters

sender
Object

The source of the event, a List.

e
ListDataBindEventArgs

A ListDataBindEventArgs that contains the event data.

Attributes

Remarks

A List control contains a collection of items. These items are of the MobileListItem class. When providing default rendering, the List control represents a MobileListItem object using its Text property. In templated rendering, the template can render any desired property of a MobileListItem object or associated data-bound object.

When you create a ListDataBindEventHandler delegate for a List control, you identify the method that handles the event. The List control notifies the handler when an item event is generated. To associate the event with your event handler, add an instance of the delegate to the event. Unless you remove the delegate, the event handler is called whenever the event occurs.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also