Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConditionalWeakTable<TKey, TValue>.Remove Method

Removes a key and its value from the table.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public bool Remove(
	TKey key
)

Parameters

key
Type: TKey
The key to remove.

Return Value

Type: System.Boolean
true if the key is found and removed; otherwise, false.

ExceptionCondition
ArgumentNullException

key is null.

If the key is garbage-collected during this operation, the method does not raise an exception and the return value is undefined.

Silverlight

Supported in: 5, 4

  • SecurityCriticalAttribute 

    requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft