Section B.3. Collection Objects

   

B.3 Collection Objects

Element

Description

Collection.Add method

Adds a member to a Collection object

Collection.Count method

Indicates the number of items stored to a Collection object

Collection.Item method

Retrieves a member from a Collection object based on its key value or its ordinal position

Collection.Remove method

Removes the member associated with a given key or ordinal position from a Collection object

Hashtable.Add method

Adds a key-value pair to a HashTable object

Hashtable.Clear method

Removes all entries from the hash table

Hashtable.ContainsKey method

Indicates whether a given key exists among the hash table's items

Hashtable.ContainsValue method

Indicates whether a given value exists among the hash table's items

Hashtable.CopyTo method

Copies hash table values into an array of DictionaryEntry structures

Hashtable.Count property

Indicates the total number of elements in the hash table

Hashtable.Item property

Retrieves the value of a hash table item given its key

Hashtable.Keys property

Returns an ICollection object that contains the keys in the hash table

Hashtable.Remove method

Removes a key/value pair from the hash table

Hashtable.Values property

Returns an ICollection object that contains the values in the hash table

Queue.Clear method

Clears all items in the queue

Queue.Contains method

Indicates whether the queue contains a particular object

Queue.CopyTo method

Copies the queue elements to an array

Queue.Count method

Indicates the total number of items in the queue

Queue.Dequeue method

Removes an item from the queue

Queue.Enqueue method

Places an item at the end of the queue

Queue.Peek method

Returns the first item in the queue

Queue.ToArray method

Copies the queue elements to an array

Stack.Clear method

Clears all items in the stack

Stack.Contains method

Indicates whether the stack contains a particular object

Stack.CopyTo method

Copies the items in the stack to an array

Stack.Count method

Indicates the total number of items in the stack

Stack.Peek method

Returns the item at the top of the stack

Stack.Pop method

Removes the topmost item from the stack

Stack.Push method

Places an item at the top of the stack

Stack.ToArray method

Copies the items on the stack to an array

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net