![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![DropDown image](drpdown.gif)
![DropDownHover image](drpdown_orange.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
ReadOnlyDictionaryBase<(Of <TKey, TValue>)> Members |
See Also Methods Properties Constructors Explicit Interface Implementations |
![]() ![]() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public abstract class ReadOnlyDictionaryBase<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public MustInherit Class ReadOnlyDictionaryBase(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] generic<typename TKey, typename TValue> public ref class ReadOnlyDictionaryBase abstract |
Type Parameters
- TKey
- TValue
The type exposes the following members.
Protected Constructors
Name | Description | |
---|---|---|
![]() | ReadOnlyDictionaryBase<(Of <TKey, TValue>)>ReadOnlyDictionaryBase<(Of <TKey, TValue>)>New |
Public Methods
Name | Description | |
---|---|---|
![]() | Contains | Overloaded. |
![]() | ContainsKey |
Determines whether a given key is found
in the dictionary.
|
![]() | ConvertAll<(Of <TOutput>)> |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | Equals | (Inherited from Object.) |
![]() | Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | ForEach |
Performs the specified action on each item in this collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | GetEnumerator |
Must be overridden to enumerate all the members of the collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Remove |
Removes a key from the dictionary. Always throws an exception
indicating that this method is not supported in a read-only dictionary.
|
![]() | ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | ToString |
Shows the string representation of the dictionary. The string representation contains
a list of the mappings in the dictionary.
(Overrides ReadOnlyCollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>..::ToString()().) |
![]() | TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | TryGetValue |
Determines if this dictionary contains a key equal to key. If so, the value
associated with that key is returned through the value parameter. This method must be overridden
in the derived class.
|
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Properties
Name | Description | |
---|---|---|
![]() | Count |
Must be overridden to provide the number of items in the collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() | Item |
The indexer of the dictionary. The set accessor throws an NotSupportedException
stating the dictionary is read-only.
|
![]() | Keys |
Returns a collection of the keys in this dictionary.
|
![]() | Values |
Returns a collection of the values in this dictionary. The ordering of
values in this collection is the same as that in the Keys collection.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | ICollection<(Of <T>)>..::Add | (Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection<(Of <T>)>..::Clear | (Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection<(Of <T>)>..::IsReadOnly | (Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection<(Of <T>)>..::Remove | (Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | IDictionary<(Of <TKey, TValue>)>..::Add | |
![]() ![]() | ICollection..::CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.) |
![]() ![]() | IDictionary..::Add |
Adds a key-value pair to the collection. Always throws an exception
indicating that this method is not supported in a read-only dictionary.
|
![]() ![]() | IDictionary..::Clear |
Clears this dictionary. Always throws an exception
indicating that this method is not supported in a read-only dictionary.
|
![]() ![]() | IDictionary..::Contains |
Determines if this dictionary contains a key equal to key. The dictionary
is not changed. Calls the (overridden) ContainsKey method. If key is not of the correct
TKey for the dictionary, false is returned.
|
![]() ![]() | IDictionary..::GetEnumerator |
Returns an enumerator that enumerates all the entries in the dictionary. Each entry is
returned as a DictionaryEntry.
The entries are enumerated in the same orders as the (overridden) GetEnumerator
method.
|
![]() ![]() | IDictionary..::IsFixedSize |
Returns whether this dictionary is fixed size.
|
![]() ![]() | IDictionary..::IsReadOnly |
Returns if this dictionary is read-only.
|
![]() ![]() | IDictionary..::Item |
Gets the value associated with a given key. When getting a value, if this
key is not found in the collection, then null is returned. If the key is not of the correct type
for this dictionary, null is returned.
|
![]() ![]() | IDictionary..::Keys |
Returns a collection of all the keys in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
|
![]() ![]() | IDictionary..::Remove |
Removes the key (and associated value) from the collection that is equal to the passed in key. Always throws an exception
indicating that this method is not supported in a read-only dictionary.
|
![]() ![]() | IDictionary..::Values |
Returns a collection of all the values in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
|
![]() ![]() | IEnumerable..::GetEnumerator |
Returns an enumerator that enumerates all the entries in the dictionary. Each entry is
returned as a DictionaryEntry.
The entries are enumerated in the same orders as the (overridden) GetEnumerator
method.
|