Share via


TBoundProperty<BSTR>.operator=(const BSTR) (Compact 7)

3/12/2014

The = overloaded operator assigns the value of a binary string as the new property value of a TBoundProperty<BSTR> object.

Syntax

const BSTR operator=(
const BSTR value)

Parameters

Return Value

Returns the BSTR contained in the TBoundProperty<BSTR> object after the new value is assigned.

Remarks

The operands used with the = operator must have identical data types, or the operand on the right must be implicitly convertible to the type of the operand on the left.

The = overloaded operator does not allocate any memory. Before using it, you must call SysAllocString to initialize a string value.

Requirements

Header

oleauto.h,
XRPropertyBag.h

Library

oleaut32.lib

See Also

Reference

C++ Overloaded Operators for BSTR
TBoundProperty<BSTR>.operator BSTR()
TBoundProperty<BSTR>