Partager via


ReadOnlyDictionary<TKey,TValue> Classe

Définition

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))

Paramètres de type

TKey
TValue
Héritage
ReadOnlyDictionary<TKey,TValue>
Implémente

Constructeurs

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

Propriétés

Count
IsReadOnly
Item[TKey]
Keys
Values

Méthodes

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)

Implémentations d’interfaces explicites

IEnumerable.GetEnumerator()

S’applique à