Share via


XRPtr<Interface>::Attach(Interface,bool) (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, 
    bool fAddRef
)

Parameters

  • pInterface
    [in] A raw interface pointer to a Silverlight object.
  • fAddRef
    [in] Boolean that indicates whether to increment the reference count by calling IUnknown::AddRef. If it is true, then AddRef is called. If it is false, the smart pointer takes ownership of the raw interface pointer without calling AddRef.

Return Value

None.

Remarks

This method releases 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>