







[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 properties.
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>)>..::IsReadOnly | (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..::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..::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.
|