Share via


TBoundPropertyBase.Set(const PropertyType&) (Compact 7)

3/12/2014

This method sets the property value that is contained in the TBoundPropertyBase<PropertyType,StoreType> object.

Syntax

void Set(
const PropertyType & value)

Parameters

  • value
    [in] New value of the property.

Return Value

None. See Remarks.

Remarks

This method’s return value is void; however, to provide error message information, its implementation internally calls the _xr_propertybag_error(const char *,HRESULT,const char *) debugging method, which outputs an error message if TBoundPropertyBase.Set(const PropertyType&) does not raise the PropertyChanged event.

To determine whether the TBoundPropertyBase.Set(const PropertyType&) method’s internal call to TBoundPropertyBase.RaisePropertyChangedEvent successfully raised the PropertyChanged event, add #include "dbgapi.h" to your application and at run time, look for an error message output by ERRORMSG in the Output window in Platform Builder. If the error message is there, verify that you registered the property with the property bag by calling TPropertyBag.RegisterBoundProperty(const ce.wstring&,iXRPropertyBinding &), and that you provided a valid property name when you registered it.

For more information, see the return values in TBoundPropertyBase.RaisePropertyChangedEvent.

Requirements

Header

XRPropertyBag.h

See Also

Reference

TBoundPropertyBase<PropertyType,StoreType>
TBoundPropertyBase.Set(XRValue *)
_xr_propertybag_error(const char *,HRESULT,const char *)

Other Resources

ERRORMSG