<div class="content" name="MQPROPERTYRESTRICTION" uuid="95994f9c-27df-4cfe-9834-ed2fdba363ec"><p>The MQPROPERTYRESTRICTION structure specifies a logical
expression over an <a href="993fa29f-3deb-494f-b4b4-492ee945735f#gt_0409899a-2e1c-452a-b5ae-5a524e2d9280" data-linktype="relative-path">MSMQ
object property</a>. The logical expression evaluates to TRUE or FALSE. The
logical expression is defined through a relational comparison operation between
an MSMQ object property and a specified constant value.</p><dl>
<dd>
<div><pre> typedef struct tagMQPROPERTYRESTRICTION {
   unsigned long rel;
   unsigned long prop;
   PROPVARIANT prval;
 } MQPROPERTYRESTRICTION;
</pre></div>
</dd></dl><p><b>rel:</b>   Specifies the binary relation to be
computed between the MSMQ object property identified by prop and the constant
specified by prval. The value of this field MUST be one of the values as
defined as follows.</p><table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>PRLT 0x00000000</td>
  <td>Less than.</td>
 </tr><tr>
  <td>PRLE 0x00000001</td>
  <td>Less than or equal to.</td>
 </tr><tr>
  <td>PRGT 0x00000002</td>
  <td>Greater than.</td>
 </tr><tr>
  <td>PRGE 0x00000003</td>
  <td>Greater than or equal to.</td>
 </tr><tr>
  <td>PREQ 0x00000004</td>
  <td>Equal to.</td>
 </tr><tr>
  <td>PRNE 0x00000005</td>
  <td>Not equal to.</td>
 </tr></tbody></table><p><b>prop:</b>   A <a href="993fa29f-3deb-494f-b4b4-492ee945735f#gt_382ac1cd-8ff9-493a-bfec-d9ad08955707" data-linktype="relative-path">property identifier</a>
specifying what MSMQ object property to be used as the left operand in the
binary relation specified in rel. MUST be one of the values specified in the
object property identifier table, as specified in section <a href="1f12668a-2fa3-45cf-8236-74f0fe4a6b7d" data-linktype="relative-path">2.2.10.1</a>.</p><p><b>prval:</b>   A constant value to be used as the
right operand in the binary relation specified in rel. The variant type of
prval MUST match the variant type of the MSMQ object property identified by
prop as specified in the property identifier tables in section 2.2.10.1.</p><p>This structure is used in directory query operations to
define a single constraint over the set of directory objects to be returned. An
object is deemed to satisfy the constraint if the binary expression, as
specified by the MQPROPERTYRESTRICTION structure, evaluates to TRUE, and is
deemed not to satisfy the constraint otherwise. See section <a href="ebe8417a-ded8-4f3d-9187-bbbdb0856f41" data-linktype="relative-path">3.1.4.17</a>.</p></div>