Share via


WeakReference::SetUnknown Method

Supports the WRL infrastructure and is not intended to be used directly from your code.

void SetUnknown(
   _In_ IUnknown* unk
);

Parameters

  • unk
    A pointer to the IUnknown interface of an object.

Remarks

Sets the strong reference of the current WeakReference object to the specified interface pointer.

Requirements

Header: implements.h

Namespace: Microsoft::WRL::Details

See Also

Reference

WeakReference Class

Microsoft::WRL::Details Namespace