ListDataBindEventArgs 类    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 事件提供参数。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站。
public ref class ListDataBindEventArgs : EventArgs
	public class ListDataBindEventArgs : EventArgs
	[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 class ListDataBindEventArgs : EventArgs
	type ListDataBindEventArgs = class
    inherit EventArgs
	[<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 ListDataBindEventArgs = class
    inherit EventArgs
	Public Class ListDataBindEventArgs
Inherits EventArgs
		- 继承
 
- 属性
 
示例
下面的代码示例演示如何使用 ItemDataBind 事件获取列表的状态设置的起始总计。 此代码是概述的较大示例的 List 一部分。
private void Status_DataBinding(object sender, 
    ListDataBindEventArgs e)
{
    // Increment initial counts
    switch (e.ListItem.Value)
    {
        case "done":
            doneCount += 1;
            break;
        case "scheduled":
            schedCount += 1;
            break;
        case "pending":
            pendCount += 1;
            break;
    }
}
Private Sub Status_DataBinding(ByVal sender As Object, _
    ByVal e As ListDataBindEventArgs)
    ' Increment initial counts
    Select Case e.ListItem.Value
        Case "done"
            doneCount += 1
        Case "scheduled"
            schedCount += 1
        Case "pending"
            pendCount += 1
    End Select
End Sub
	构造函数
| ListDataBindEventArgs(MobileListItem, Object) | 
			 
				已过时.
			 
		初始化 ListDataBindEventArgs 类的新实例。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站。  | 
        	
属性
| DataItem | 
			 
				已过时.
			 
		获取要绑定的列表项的指定数据对象。 该属性只可用于数据绑定列表项的请求上;后续回发时,始终为   | 
        	
| ListItem | 
			 
				已过时.
			 
		返回被绑定的当前 ListItem。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站。  | 
        	
方法
| Equals(Object) | 
			 
		已过时.
	 
确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetHashCode() | 
			 
		已过时.
	 
作为默认哈希函数。 (继承自 Object) | 
        	
| GetType() | 
			 
		已过时.
	 
获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
			 
		已过时.
	 
创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| ToString() | 
			 
		已过时.
	 
返回表示当前对象的字符串。 (继承自 Object) |