Share via


TBoundProperty<BSTR>.Set(XRValue *) (Compact 2013)

3/28/2014

This method sets the value of the string property that is encapsulated by the TBoundProperty<BSTR> object by using an XRValue object.

Syntax

HRESULT STDMETHODCALLTYPE Set(
XRValue * pValue)

Parameters

  • pValue
    [in] Pointer to an XRValue object that contains the value to set.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method was successful.

E_POINTER

The pValue parameter is not valid.

Remarks

The member variable of the XRValue object is bstrStringVal.

To set the property value after you register the property with a TPropertyBag<Derived> object, use TPropertyBag.SetValue(const WCHAR *,XRValue *).

Requirements

Header

oleauto.h,
XRPropertyBag.h

Library

oleaut32.lib

See Also

Reference

TBoundProperty<BSTR>
TBoundProperty<BSTR>.Set(const BSTR)
TBoundProperty<BSTR>.Get(XRValue *)