ConditionalWeakTable(TKey, TValue) Methods
Collapse the table of content
Expand the table of content

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.

  NameDescription
Public method Add Adds a key to the table.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method 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.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method 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.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes a key and its value from the table.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue Gets the value of the specified key.
Top

Show:
© 2017 Microsoft