XRPtr<Interface>::Detach (Compact 2013)

3/28/2014

This method extracts and returns the encapsulated interface pointer, and relinquishes ownership so that the returned interface will not be released by this smart pointer.

Syntax

Interface* Detach()

Parameters

None.

Return Value

Returns the raw interface pointer that was encapsulated by this smart pointer.

Remarks

This method removes the interface pointer from encapsulation. You must call IUnknown::Release on the returned interface pointer.

Requirements

Header

XRPtr.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XRPtr<Interface>