The ReadOnlyDictionary < (Of < ( K, V > ) > ) type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Not supported. An entry cannot be added to a
ReadOnlyDictionary instance.
|
|
Contains |
Determines whether the ReadOnlyDictionary
contains an item.
|
|
ContainsKey |
Determines whether the ReadOnlyDictionary
contains an element with the specified key.
|
|
CopyTo |
Copies the elements of the ReadOnlyDictionary
to an System.Array, starting at a particular System.Array
index.
|
|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove |
It will always throw
System.NotSupportedException as ReadOnlyDictionary is
read-only.
|
|
ToString | (Inherited from Object.) | |
TryGetValue |
Gets the element with the specified key.
|
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the
ReadOnlyDictionary.
|
|
IsReadOnly |
Always returns true as ReadOnlyDictionary is
read-only.
|
|
Item |
Gets the element with the specified key.
|
|
Keys |
Gets an System.Collections.Generic.ICollection
containing the keys of the ReadOnlyDictionary.
|
|
Values |
Gets an System.Collections.Generic.ICollection
containing the values of the ReadOnlyDictionary.
|