次の方法で共有


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

3/28/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>