Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |