ConcurrentDictionary<TKey,TValue>.ToArray メソッド

定義

ConcurrentDictionary<TKey,TValue> に格納されているキーと値のペアを新しい配列にコピーします。

public:
 cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ ToArray();
public System.Collections.Generic.KeyValuePair<TKey,TValue>[] ToArray ();
member this.ToArray : unit -> System.Collections.Generic.KeyValuePair<'Key, 'Value>[]
Public Function ToArray () As KeyValuePair(Of TKey, TValue)()

戻り値

KeyValuePair<TKey,TValue>[]

ConcurrentDictionary<TKey,TValue> からコピーされたキーと値のペアのスナップショットを格納する新しい配列。

適用対象

こちらもご覧ください