TBoundPropertyBase.Set(XRValue *) (Compact 7)
3/12/2014
This method sets the value of the property in the property bag by using the specified XRValue object.
Syntax
HRESULT STDMETHODCALLTYPE Set(
XRValue * pValue)
Parameters
- pValue
[in] Pointer to an XRValue object that contains the new value to set for the property.
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. |
E_FAIL |
The method was unable to retrieve the value from the XRValue object you provided in pValue. |
Remarks
This method internally calls TBoundPropertyBase.Set(const PropertyType&), which calls the _xr_propertybag_error debugging method. If TBoundPropertyBase.Set(const PropertyType&) does not raise the PropertyChanged event, the debugging method outputs an error message.
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.
Requirements
Header |
XRPropertyBag.h |
See Also
Reference
TBoundPropertyBase<PropertyType,StoreType>
TBoundPropertyBase.Set(const PropertyType&)