ImmutableDictionary.Contains<TKey,TValue> 메서드

정의

변경할 수 없는 지정된 사전에 지정된 키/값 쌍이 들어 있는지 여부를 확인합니다.

public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
 static bool Contains(System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ map, TKey key, TValue value);
public static bool Contains<TKey,TValue> (this System.Collections.Immutable.IImmutableDictionary<TKey,TValue> map, TKey key, TValue value);
static member Contains : System.Collections.Immutable.IImmutableDictionary<'Key, 'Value> * 'Key * 'Value -> bool
<Extension()>
Public Function Contains(Of TKey, TValue) (map As IImmutableDictionary(Of TKey, TValue), key As TKey, value As TValue) As Boolean

형식 매개 변수

TKey

변경할 수 없는 사전에 있는 키의 형식입니다.

TValue

변경할 수 없는 사전에 있는 값의 형식입니다.

매개 변수

map
IImmutableDictionary<TKey,TValue>

검색할 변경할 수 없는 사전입니다.

key
TKey

변경할 수 없는 사전에서 찾을 키입니다.

value
TValue

키가 있는 경우 지정된 키에서 찾을 값입니다.

반환

이 맵에 지정된 키/값 쌍이 포함되어 있으면 true이고, 그렇지 않으면 false입니다.

적용 대상