CollectionExtensions.TryAdd(IDictionary<TKey,TValue>, TKey, TValue) CollectionExtensions.TryAdd(IDictionary<TKey,TValue>, TKey, TValue) CollectionExtensions.TryAdd(IDictionary<TKey,TValue>, TKey, TValue) CollectionExtensions.TryAdd(IDictionary<TKey,TValue>, TKey, TValue) Method

Definição

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

Parâmetros de tipo

TKey
TValue

Parâmetros

key
value
TValue TValue TValue TValue

Retornos

Aplica-se a