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 source object to which a weak reference can be retrieved.
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 IWeakReferenceSource interface inherits from the IUnknown interface.
Methods
The IWeakReferenceSource interface has these methods.
| IWeakReferenceSource::GetWeakReference Retrieves a weak reference from an IWeakReferenceSource. |
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 |