CollectionExtensions.Remove<TKey,TValue> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 지정된 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될 때의 default 값 TValue입니다.
반품
예외
dictionary은 null입니다.