ConditionalWeakTable<TKey, TValue> Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The ConditionalWeakTable<TKey, TValue> type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds a key to the table. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetOrCreateValue | Atomically searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes the default constructor of the class that represents the table's value to create a value that is bound to the specified key. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
GetValue | Atomically searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes a callback method to create a value that is bound to the specified key. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes a key and its value from the table. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TryGetValue | Gets the value of the specified key. |
Show: