WeakValueDictionary<K, V> Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Inheritance Hierarchy

  Microsoft.Internal.VisualStudio.PlatformUI.WeakValueDictionary<K, V>

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)


Public Class WeakValueDictionary(Of K, V As Class)
public class WeakValueDictionary<K, V>
where V : class
generic<typename K, typename V>
where V : ref class 
public ref class WeakValueDictionary
type WeakValueDictionary<'K, 'V when 'V : not struct> =  class end
JScript does not support generic types or methods.

Type Parameters

  • K
  • V

The WeakValueDictionary<K, V> type exposes the following members.


  Name Description
Public method WeakValueDictionary<K, V>()
Public method WeakValueDictionary<K, V>(IEqualityComparer<K>)



  Name Description
Public property Count
Public property Item
Public property Keys
Public property Values



  Name Description
Public method Clear
Public method Contains
Public method Equals 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 it 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 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.Internal.VisualStudio.PlatformUI Namespace