mscorlib(4.0.0.0) API with additions
|
Represents a nongeneric collection of key/value pairs. More...
Public Member Functions | |
bool | Contains (object key) |
Determines whether the T:System.Collections.IDictionary object contains an element with the specified key. More... | |
void | Add (object key, object value) |
Adds an element with the provided key and value to the T:System.Collections.IDictionary object. More... | |
void | Clear () |
Removes all elements from the T:System.Collections.IDictionary object. More... | |
new IDictionaryEnumerator | GetEnumerator () |
Returns an T:System.Collections.IDictionaryEnumerator object for the T:System.Collections.IDictionary object. More... | |
void | Remove (object key) |
Removes the element with the specified key from the T:System.Collections.IDictionary object. More... | |
![]() | |
void | CopyTo (Array array, int index) |
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index. More... | |
Properties | |
object | this[object key] [get, set] |
Gets or sets the element with the specified key. More... | |
ICollection | Keys [get] |
Gets an T:System.Collections.ICollection object containing the keys of the T:System.Collections.IDictionary object. More... | |
ICollection | Values [get] |
Gets an T:System.Collections.ICollection object containing the values in the T:System.Collections.IDictionary object. More... | |
bool | IsReadOnly [get] |
Gets a value indicating whether the T:System.Collections.IDictionary object is read-only. More... | |
bool | IsFixedSize [get] |
Gets a value indicating whether the T:System.Collections.IDictionary object has a fixed size. More... | |
![]() | |
int | Count [get] |
Gets the number of elements contained in the T:System.Collections.ICollection. More... | |
object | SyncRoot [get] |
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection. More... | |
bool | IsSynchronized [get] |
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (thread safe). More... | |
Represents a nongeneric collection of key/value pairs.
Definition at line 8 of file IDictionary.cs.
void System.Collections.IDictionary.Add | ( | object | key, |
object | value | ||
) |
Adds an element with the provided key and value to the T:System.Collections.IDictionary object.
key | The T:System.Object to use as the key of the element to add. |
value | The T:System.Object to use as the value of the element to add. |
T:System.ArgumentNullException | key is null . |
T:System.ArgumentException | An element with the same key already exists in the T:System.Collections.IDictionary object. |
T:System.NotSupportedException | The T:System.Collections.IDictionary is read-only.-or- The T:System.Collections.IDictionary has a fixed size. |
Implemented in System.Collections.Hashtable, System.Collections.SortedList, System.Collections.Specialized.ListDictionary, System.Collections.Specialized.OrderedDictionary, System.Collections.Specialized.HybridDictionary, and System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties.
void System.Collections.IDictionary.Clear | ( | ) |
Removes all elements from the T:System.Collections.IDictionary object.
T:System.NotSupportedException | The T:System.Collections.IDictionary object is read-only. |
Implemented in System.Collections.Hashtable, System.Collections.SortedList, System.Collections.Concurrent.ConcurrentDictionary< TKey, TValue >, System.Collections.Specialized.ListDictionary, System.ComponentModel.PropertyDescriptorCollection, System.Collections.Specialized.OrderedDictionary, System.Collections.Specialized.HybridDictionary, System.Collections.DictionaryBase, and System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties.
bool System.Collections.IDictionary.Contains | ( | object | key | ) |
Determines whether the T:System.Collections.IDictionary object contains an element with the specified key.
key | The key to locate in the T:System.Collections.IDictionary object. |
true
if the T:System.Collections.IDictionary contains an element with the key; otherwise, false
.T:System.ArgumentNullException | key is null . |
Implemented in System.Collections.Hashtable, System.Collections.SortedList, System.Collections.Specialized.ListDictionary, System.Collections.Specialized.OrderedDictionary, System.Collections.Specialized.HybridDictionary, and System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties.
new IDictionaryEnumerator System.Collections.IDictionary.GetEnumerator | ( | ) |
Returns an T:System.Collections.IDictionaryEnumerator object for the T:System.Collections.IDictionary object.
Implements System.Collections.IEnumerable.
Implemented in System.Collections.Hashtable, System.Collections.SortedList, System.Collections.Concurrent.ConcurrentDictionary< TKey, TValue >, System.Collections.ObjectModel.ReadOnlyDictionary< TKey, TValue >, System.ComponentModel.PropertyDescriptorCollection, System.Collections.Specialized.OrderedDictionary, System.Collections.Specialized.ListDictionary, System.Collections.Specialized.HybridDictionary, System.Collections.DictionaryBase, System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties, and System.Collections.Specialized.IOrderedDictionary.
void System.Collections.IDictionary.Remove | ( | object | key | ) |
Removes the element with the specified key from the T:System.Collections.IDictionary object.
key | The key of the element to remove. |
T:System.ArgumentNullException | key is null . |
T:System.NotSupportedException | The T:System.Collections.IDictionary object is read-only.-or- The T:System.Collections.IDictionary has a fixed size. |
Implemented in System.Collections.Hashtable, System.Collections.SortedList, System.Collections.Specialized.ListDictionary, System.Collections.Specialized.OrderedDictionary, System.Collections.Specialized.HybridDictionary, and System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties.
|
get |
Gets a value indicating whether the T:System.Collections.IDictionary object has a fixed size.
true
if the T:System.Collections.IDictionary object has a fixed size; otherwise, false
.Definition at line 58 of file IDictionary.cs.
|
get |
Gets a value indicating whether the T:System.Collections.IDictionary object is read-only.
true
if the T:System.Collections.IDictionary object is read-only; otherwise, false
.Definition at line 48 of file IDictionary.cs.
|
get |
Gets an T:System.Collections.ICollection object containing the keys of the T:System.Collections.IDictionary object.
Definition at line 29 of file IDictionary.cs.
|
getset |
Gets or sets the element with the specified key.
key | The key of the element to get or set. |
null
if the key does not exist.T:System.ArgumentNullException | key is null . |
T:System.NotSupportedException | The property is set and the T:System.Collections.IDictionary object is read-only.-or- The property is set, key does not exist in the collection, and the T:System.Collections.IDictionary has a fixed size. |
Definition at line 18 of file IDictionary.cs.
|
get |
Gets an T:System.Collections.ICollection object containing the values in the T:System.Collections.IDictionary object.
Definition at line 38 of file IDictionary.cs.