Partager via


XRPtr<Interface>::Detach (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

XRPtr<Interface>