다음을 통해 공유


ReadOnlyDictionary<TKey,TValue> 클래스

정의

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

형식 매개 변수

TKey
TValue
상속
ReadOnlyDictionary<TKey,TValue>
구현

생성자

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

속성

Count
IsReadOnly
Item[TKey]
Keys
Values

메서드

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)

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

적용 대상