Share via


XRValue::SetValue(const BSTR, bool) (Compact 7)

3/12/2014

This method sets a new value for bstrStringVal in XRValue.

Syntax

void SetValue(
    const BSTR Value,
    bool NeedFreeValuePointer
)

Parameters

  • Value
    [in] The new string value.
  • 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 its references 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