TBoundPointerProperty.operator& (Compact 7)
3/12/2014
The & overloaded operator returns a PropertyType pointer to the property that is contained in the TBoundPointerProperty<PropertyType> object.
Syntax
PropertyType** operator&(void)
Parameters
None.
Return Value
Returns a PropertyType pointer to the property that is contained in the TBoundPointerProperty<PropertyType> object.
Remarks
Define the PropertyType type in the PropertyType template parameter of TBoundPointerProperty<PropertyType>.
When you use the & overloaded operator for a TBoundPointerProperty<PropertyType>, use the operator as a function.
Example
The following example code illustrates one way to use the & overloaded operator.
Important
For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.
#include "XamlRuntime.h"
#include "XRPropertyBag.h"
// Define variables for TBoundPointerProperty<PropertyType> and IXREnumerable.
TBoundPointerProperty<IXREnumerable> pValue3;
IXREnumerable ** pValue4;
// Use the & operator to return a PropertyType pointer.
pValue4 = pValue1->operator &();
Requirements
Header |
XRPropertyBag.h |
See Also
Reference
TBoundPointerProperty<PropertyType>
TBoundPointerProperty.operator PropertyType*()