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

ConditionalWeakTable(Of TKey, TValue) Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ConditionalWeakTable(Of TKey, TValue) class.

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

'Declaration
Public Sub New

The ConditionalWeakTable(Of TKey, TValue) constructor instantiates an empty ConditionalWeakTable(Of TKey, TValue) table; that is, the table contains no key/value pairs. You can add key/value pairs by calling the Add, GetValue, or GetOrCreateValue method.

Every key in a ConditionalWeakTable(Of TKey, TValue) object must be unique. Keys are not unique if they refer to the same object (that is, if passing them as arguments to the Object.ReferenceEquals method returns true).

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft