System.Web.UI.WebControls Namespace DataListItemCollection Class
Returns an IEnumerator interface that contains all the DataListItem objects in the collection.
[ VB ] NotOverridable Public Function GetEnumerator ( ) As IEnumerator [ C# ] public IEnumerator GetEnumerator ( ); [ C++ ] public: __sealed IEnumerator* GetEnumerator ( ); [ JScript ] public function GetEnumerator ( ) : IEnumerator;
A System.Collections.IEnumerator that contains a list of DataListItem objects in the collection.
Use this method to create a System.Collections.IEnumerator that can be iterated through easily to get each item in the DataListItemCollection.
Use the IEnumerator.Current property to get the item currently pointed to in the collection.
Use the IEnumerator.MoveNext method to move to the next item in the collection.
Use the IEnumerator.Reset method to move the enumerator to the initial position.
NOTE: The IEnumerator.MoveNext method must be called after creating a System.Collections.IEnumerator object, or after using the IEnumerator.Reset method to move the enumerator to the first item in the collection. Otherwise, the item represented by the IEnumerator.Current property is undefined.
DataListItemCollection Members
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph