SortedDictionary<TKey,TValue>.KeyCollection コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した SortedDictionary<TKey,TValue>.KeyCollection 内のキーを反映する、SortedDictionary<TKey,TValue> クラスの新しいインスタンスを初期化します。
public:
KeyCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public KeyCollection (System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))
パラメーター
- dictionary
- SortedDictionary<TKey,TValue>
新しい SortedDictionary<TKey,TValue> にキーが反映される SortedDictionary<TKey,TValue>.KeyCollection。
例外
dictionary
は null
です。
注釈
SortedDictionary<TKey,TValue>.KeyCollectionは静的コピーではありません。代わりに、 SortedDictionary<TKey,TValue>.KeyCollection は元SortedDictionary<TKey,TValue>の のキーを参照します。 したがって、 に対する SortedDictionary<TKey,TValue> 変更は、 に SortedDictionary<TKey,TValue>.KeyCollection反映され続けます。
このコンストラクターは O(1) 操作です。
適用対象
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示