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

Définition

Initialise une nouvelle instance de la classe ReadOnlyDictionary<TKey,TValue> qui est un wrapper autour du dictionnaire spécifié.Initializes a new instance of the ReadOnlyDictionary<TKey,TValue> class that is a wrapper around the specified dictionary.

public:
 ReadOnlyDictionary(System::Collections::Generic::IDictionary<TKey, TValue> ^ dictionary);
public ReadOnlyDictionary (System.Collections.Generic.IDictionary<TKey,TValue> dictionary);
new System.Collections.ObjectModel.ReadOnlyDictionary<'Key, 'Value> : System.Collections.Generic.IDictionary<'Key, 'Value> -> System.Collections.ObjectModel.ReadOnlyDictionary<'Key, 'Value>
Public Sub New (dictionary As IDictionary(Of TKey, TValue))

Paramètres

dictionary
IDictionary<TKey,TValue> IDictionary<TKey,TValue> IDictionary<TKey,TValue> IDictionary<TKey,TValue>

Dictionnaire à inclure dans un wrapper.The dictionary to wrap.

Exceptions

S’applique à