Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 |