2.2.1.6 CPropertyRestriction
The CPropertyRestriction structure contains a property to get from each row, a comparison operator, and a constant. For each row, the value returned by the specific property in the row is compared against the constant to see if it has the relationship specified by the _relop field. For the comparison to be true, the data types of the values MUST match.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_relop |
|||||||||||||||||||||||||||||||
_Property (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
_prval (variable) |
|||||||||||||||||||||||||||||||
... |
_relop (4 bytes): A 32-bit unsigned integer specifying the relation to perform on the property. _relop MUST be one of the following values with an optional bitwise-OR mask applied to the value.
-
Value
Meaning
PREQ
0x00000004
An equality comparison.
PRNE
0x00000005
A not-equal comparison.
-
The possible values for the optional mask are listed in the following table.
-
Value
Meaning
PRAny
0x00000200
The restriction is true if any element in the property value has the relationship with some element in the _prval field.
_Property (variable): A CFullPropSpec structure indicating the property on which to perform a match operation.
_prval (variable): A CBaseStorageVariant structure containing the value to relate to the property