CollectionExtensions.Remove<TKey,TValue> 메서드

정의

에서 지정된 keydictionary값을 제거하려고 합니다.

public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
 static bool Remove(System::Collections::Generic::IDictionary<TKey, TValue> ^ dictionary, TKey key, [Runtime::InteropServices::Out] TValue % value);
public static bool Remove<TKey,TValue>(this System.Collections.Generic.IDictionary<TKey,TValue> dictionary, TKey key, out TValue value);
static member Remove : System.Collections.Generic.IDictionary<'Key, 'Value> * 'Key * 'Value -> bool
<Extension()>
Public Function Remove(Of TKey, TValue) (dictionary As IDictionary(Of TKey, TValue), key As TKey, ByRef value As TValue) As Boolean

형식 매개 변수

TKey

에 있는 키의 형식입니다 dictionary.

TValue

에 있는 값의 형식입니다 dictionary.

매개 변수

dictionary
IDictionary<TKey,TValue>

형식의 키와 형식 TKeyTValue의 값이 있는 사전입니다.

key
TKey

제거할 값의 키입니다.

value
TValue

이 메서드가 반환 true될 때 제거된 값, 이 메서드가 반환 false될 때의 defaultTValue입니다.

반품

지정된 값을 가진 값이 있으면 값과 연결된 값을 찾을 수 없는 경우 입니다.

예외

dictionarynull입니다.

적용 대상