Dictionary<TKey,TValue>.ValueCollection 생성자

정의

지정한 Dictionary<TKey,TValue>.ValueCollection의 값을 반영하는 Dictionary<TKey,TValue> 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

dictionary
Dictionary<TKey,TValue>

해당 값이 새 Dictionary<TKey,TValue>에 반영되는 Dictionary<TKey,TValue>.ValueCollection입니다.

예외

dictionarynull입니다.

설명

Dictionary<TKey,TValue>.ValueCollection 정적 복사본이 아니며, 대신 는 Dictionary<TKey,TValue>.ValueCollection 원래 Dictionary<TKey,TValue>의 값을 다시 참조합니다. 따라서 에 대한 Dictionary<TKey,TValue> 변경 내용은 에 계속 반영됩니다 Dictionary<TKey,TValue>.ValueCollection.

이 생성자는 O(1) 작업입니다.

적용 대상