This documentation is archived and is not being maintained.

ObjectListField Class

Represents a field of an ObjectList ASP.NET mobile control. This class cannot be inherited.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class ObjectListField : IStateManager

A field is of type ObjectListField. When you want to display multiple fields, you can specify multiple fields for each item in an object list. To create a field within the declaration of an ObjectList, you declare an ObjectListField as a <Field> element. Each field is associated with a property name. When a list item is bound to a data object, each field is bound to the corresponding property of the object.

The ObjectList provides three ways to define a field:

  • Declaratively, by using <Field> child elements within the object list

  • Programmatically, by constructing ObjectListField objects and adding them to the Fields member collection of the control

  • Automatically, by setting the AutoGenerateFields property to true.

For a complete example, see the ObjectList overview.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1