IWeakReferenceSource interface (weakreference.h)
Represents a source object to which a weak reference can be retrieved.
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.
The IWeakReferenceSource interface inherits from the IUnknown interface.
The IWeakReferenceSource interface has these methods.
|IWeakReferenceSource::GetWeakReference||Retrieves a weak reference from an IWeakReferenceSource.|
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|