<div class="content" name="AddThreshold" uuid="1de1dd14-1fc1-467d-b1d5-5142b8fe74cb"><p>The AddThreshold method adds a <b>threshold</b> to the quota
objects list of <b>thresholds</b>.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_QUOTA_BASE | 0x01)] HRESULT AddThreshold(
   [in] FSRM_QUOTA_THRESHOLD threshold
 );
</pre></div>
</dd></dl><p><b>threshold: </b>Contains the value of the <b>threshold</b>
to add to the quota object.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80045303 FSRM_E_ALREADY_EXISTS</td>
  <td>The object being created already exists.</td>
 </tr><tr>
  <td>0x8004530D FSRM_E_OUT_OF_RANGE</td>
  <td>The content of the threshold parameter is less than 1 or greater than 250.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>threshold</i> is greater than 0 and less than 251.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>The server MUST add the <i>threshold</i> to the quota
object&#39;s list of <b>thresholds</b>.</p></div>