MobileListItemType 枚举

定义

警告

此 API 现已过时。

将项目类型分配给 ListObjectList 控件的子控件中的元素。Assigns an item type to an element in a List or ObjectList control's child controls. 此类不能被继承。This class cannot be inherited. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class MobileListItemType
public enum MobileListItemType
[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 https://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum MobileListItemType
type MobileListItemType = 
Public Enum MobileListItemType
继承
MobileListItemType
属性

字段

FooterItem 2

表示列表的脚注。Represents a footer for a list. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

HeaderItem 0

表示列表的标题。Represents a heading for a list. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ListItem 1

表示列表中的项。Represents an item in a list. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SeparatorItem 3

表示列表中各项间的分隔符。Represents a separator between list items. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

注解

ListObjectList 控件在模板模式下呈现时,将为需要呈现的每个标头、脚注或分隔符创建空 MobileListItem 具有相应项类型的对象。When a List or ObjectList control is rendered in templated mode, empty MobileListItem objects with the corresponding item type are created for each header, footer, or separator that needs to be rendered. 然后,这些空对象将插入控件的子控件。These empty objects are then inserted into the control's child controls.

备注

对应于列表项 MobileListItem 对象始终具有一种类型的 ListItemMobileListItem objects that correspond to list items always have a type of ListItem.

您可以使用此枚举来循环访问控件集合,并查找与页眉、页脚和分隔符模板对应的 MobileListItem 对象。You can use this enumeration for iterating through the controls collection and finding the MobileListItem objects corresponding to the header, footer, and separator templates.

适用于

另请参阅