IWeakReference interface (weakreference.h)
Represents a weak reference to an object.
Note
With only a few exceptions, weak reference support is on by default for Windows Runtime types that you consume or author in C++/WinRT, WRL, and C++/CX. Windows.UI.Composition and Windows.Devices.Input.PenDevice are examples of exceptions—that is, namespaces where weak reference support is not on for those types.
If you're authoring types, then see Weak references in C++/WinRT.
Inheritance
The IWeakReference interface inherits from the IUnknown interface.
Methods
The IWeakReference interface has these methods.
IWeakReference::Resolve Resolves a weak reference by returning a strong reference to the object. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | weakreference.h |