Share via


ReadOnlyDictionary<TKey,TValue> Class

Definition

generic <typename TKey, typename TValue>
public ref class ReadOnlyDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>, System::Collections::Generic::IDictionary<TKey, TValue>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>>
public class ReadOnlyDictionary<TKey,TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>, System.Collections.Generic.IDictionary<TKey,TValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>
type ReadOnlyDictionary<'Key, 'Value> = class
    interface IDictionary<'Key, 'Value>
    interface ICollection<KeyValuePair<'Key, 'Value>>
    interface seq<KeyValuePair<'Key, 'Value>>
    interface IEnumerable
Public Class ReadOnlyDictionary(Of TKey, TValue)
Implements ICollection(Of KeyValuePair(Of TKey, TValue)), IDictionary(Of TKey, TValue), IEnumerable(Of KeyValuePair(Of TKey, TValue))

Type Parameters

TKey
TValue
Inheritance
ReadOnlyDictionary<TKey,TValue>
Implements

Constructors

ReadOnlyDictionary<TKey,TValue>(IDictionary<TKey,TValue>)

Properties

Count
IsReadOnly
Item[TKey]
Keys
Values

Methods

Add(KeyValuePair<TKey,TValue>)
Add(TKey, TValue)
Clear()
Contains(KeyValuePair<TKey,TValue>)
ContainsKey(TKey)
CopyTo(KeyValuePair<TKey,TValue>[], Int32)
GetEnumerator()
Remove(KeyValuePair<TKey,TValue>)
Remove(TKey)
TryGetValue(TKey, TValue)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Applies to