Share via


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

1/6/2010

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

See Also

Reference

XRPtr<Interface>::Attach
XRPtr<Interface>