ConcurrentDictionary<TKey,TValue>.IDictionary.Item[Object] Property

Definition

지정된 키와 연결된 값을 가져오거나 설정합니다.Gets or sets the value associated with the specified key.

property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
 Property Item(key As Object) As Object Implements IDictionary.Item

Parameters

key
Object

가져오거나 설정할 값의 키입니다.The key of the value to get or set.

Property Value

Object

지정한 키와 연결된 값입니다. key가 사전에 없거나 key의 형식을 ConcurrentDictionary<TKey,TValue>의 키 형식에 할당할 수 없으면 null입니다.The value associated with the specified key, or null if key is not in the dictionary or key is of a type that is not assignable to the key type of the ConcurrentDictionary<TKey,TValue>.

Implements

Exceptions

keynull입니다.key is null.

값이 할당되어 있고, key가 키 형식에 할당할 수 없는 형식이거나 ConcurrentDictionary<TKey,TValue>의 값 형식인 경우A value is being assigned, and key is of a type that is not assignable to the key type or the value type of the ConcurrentDictionary<TKey,TValue>.

Applies to

See also