ImmutableInterlocked.TryRemove<TKey,TValue> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the element with the specified key, if the key exists.
public:
generic <typename TKey, typename TValue>
static bool TryRemove(System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ % location, TKey key, [Runtime::InteropServices::Out] TValue % value);
public static bool TryRemove<TKey,TValue> (ref System.Collections.Immutable.ImmutableDictionary<TKey,TValue> location, TKey key, out TValue value);
static member TryRemove : ImmutableDictionary * 'Key * 'Value -> bool
Public Shared Function TryRemove(Of TKey, TValue) (ByRef location As ImmutableDictionary(Of TKey, TValue), key As TKey, ByRef value As TValue) As Boolean
Type Parameters
- TKey
The type of the keys contained in the collection.
- TValue
The type of the values contained in the collection.
Parameters
- location
- ImmutableDictionary<TKey,TValue>
The dictionary to update.
- key
- TKey
The key to remove.
- value
- TValue
Receives the value of the removed item, if the dictionary is not empty.
Returns
true
if the key was found and removed; otherwise, false
.
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.