ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 628
نمايش فراداده

ObjectListItemCollection.NET 1.1

System.Web.UI.MobileControls (system.web.mobile.dll)class

This is a strongly typed collection of ObjectListItem instances. It's used to represent the current list of items in an ObjectList (through the ObjectList.Items property). You can use this collection to view the items in an ObjectList, but you cannot directly add or remove items from the collection list, because the ObjectList is always bound to a data source.

public class 

ObjectListItemCollection : ArrayListCollectionBase, System.Web.UI.IStateManager { // Public Instance Properties public ObjectListItem

this [int

index ]{get; } // Public Instance Methods public void

Clear ( ); public bool

Contains (ObjectListItem

item ); public ObjectListItem[ ]

GetAll ( ); public int

IndexOf (ObjectListItem

item ); }

Hierarchy

System.Object ArrayListCollectionBase(System.Collections.ICollection, System.Collections.IEnumerable) ObjectListItemCollection(System.Web.UI.IStateManager)

Returned By

ObjectList.Items