<div class="content"><p>The IUpdateSearcher::CanAutomaticallyUpgradeService (opnum
9) method sets whether the <span><a href="750e8355-177c-4a51-bab8-927c813819c8#gt_362092cf-7fb5-43eb-92e1-c3e4affdd92b" data-linktype="relative-path">update agent</a></span> can
automatically upgrade itself before performing a search initiated through this
instance.</p><dl>
<dd>
<div><pre> HRESULT CanAutomaticallyUpgradeService(
   [in] VARIANT_BOOL value
 );
</pre></div>
</dd></dl><p><b>value: </b>Set to VARIANT_TRUE to allow the update
agent to automatically upgrade itself, if it is an older version, before
performing a search through this instance; otherwise, set to VARIANT_FALSE to
disallow automatic upgrading of the update agent.</p><p><b>Return Values: </b>The method MUST return
information 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><p>If value is neither VARIANT_TRUE nor VARIANT_FALSE, this
method MUST return an error.</p><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>CanAutomaticallyUpgradeService</b>
ADM element to the contents of the <i>value</i> parameter.</p></div>