Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IWeakReference::Resolve method

Resolves a weak reference by returning a strong reference to the specified object.

Syntax


HRESULT Resolve(
  [in]          REFIID       riid,
  [out, retval] IInspectable **objectReference
);

Parameters

riid [in]

Type: REFIID

The reference ID of the specified object.

objectReference [out, retval]

Type: IInspectable**

The strong reference to the specified object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If you try to resolve a weak reference to a strong reference for an object that is no longer available, IWeakReference::Resolve returns S_OK, but the objectReference parameter points to null.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

WeakReference.h

IDL

WeakReference.idl

See also

IWeakReference

 

 

Show:
© 2017 Microsoft