ConcurrentDictionaryExtensionsRemoveTKey, TValue Method |
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax public static bool Remove<TKey, TValue>(
this ConcurrentDictionary<TKey, TValue> concurrentDictionary,
TKey key
)
Parameters
- concurrentDictionary
- Type: System.Collections.ConcurrentConcurrentDictionaryTKey, TValue
ConcurrentDictionaryTKey, TValue from which to remove value with the associated key. - key
- Type: TKey
The key of the value to remove.
Type Parameters
- TKey
- Type of the key in concurrentDictionary.
- TValue
- Type of the value returned by concurrentDictionary.
Return Value
Type:
BooleanReturns true if the object was removed successfully. False, otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ConcurrentDictionaryTKey,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also