<div class="content" name="Online" uuid="31a1923c-fb3a-416c-825d-168a79ef5c95"><p>The IUpdateSearcher::Online (opnum 22) method sets whether a
search performed by using this interface is an online search.</p><dl>
<dd>
<div><pre> HRESULT Online(
   [in] VARIANT_BOOL value
 );
</pre></div>
</dd></dl><p><b>value: </b>MUST be set either to VARIANT_TRUE if
the search operation can contact the server or to VARIANT_FALSE if it uses
local data only.</p><p><b>Return Values: </b>The method MUST return
information in an <b>HRESULT</b> data structure. The severity bit in the
structure identifies the following conditions:</p><ul><li><p><span><span>  </span></span>If
the severity bit is set to 0, the method completed successfully.</p>
</li><li><p><span><span>  </span></span>If
the severity bit is set to 1, the method failed and encountered a fatal error.</p>
</li></ul><dl>
<dd>
<p>If value is neither VARIANT_TRUE
nor VARIANT_FALSE, the server MUST return an error.</p>
</dd></dl><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p><p>This method SHOULD set the value of the <b>Online</b> ADM
element to the <i>value</i> parameter.</p></div>