Share via


XRValue::SetValue(IXRDependencyObject, bool) (Compact 2013)

3/28/2014

This method sets a new value for pObjectVal in XRValue.

Syntax

void SetValue(
    IXRDependencyObject * pValue,
    bool NeedFreeValuePointer = false
)

Parameters

  • NeedFreeValuePointer
    [in] Set to true if XRValue transfers the ownership of the value to another user. If true, you can use FreeXRValue later to free the memory of the XRValue object and clear all references to it after you are finished using it.

    Otherwise, set to false.

Return Value

Returns an HRESULT that indicates success or failure.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XRValue::SetValue
XRValue