Share via


XRPtr<Interface>::Attach(Interface) (Compact 2013)

3/28/2014

This method encapsulates a raw interface pointer in this smart pointer's type.

Syntax

void Attach(Interface* pInterface)

Parameters

  • pInterface
    [in] A raw interface pointer to a XAML for Windows Embedded object.

Return Value

None.

Remarks

This method sets the specified interface for this smart pointer without incrementing the reference count by calling IUnknown::AddRef. This method will release any previously acquired interface.

Requirements

Header

XRPtr.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XRPtr<Interface>::Attach
XRPtr<Interface>