<div class="content"><p>The Stop method manually stops the <a href="f43f48aa-80a5-4b39-971e-7b3ac0bd9d0d#gt_a6bcff77-b369-406d-9c0c-35a4771c1d0f" data-linktype="relative-path">data collector set</a>.</p><dl>
<dd>
<div><pre> HRESULT Stop(
   [in] VARIANT_BOOL Synchronous
 );
</pre></div>
</dd></dl><p><b>Synchronous: </b>Supplies a Boolean indicating
whether the stop operation MUST be synchronous or asynchronous. In synchronous
mode, the method returns when the data collector set actually stops. In
asynchronous mode, the method returns after queuing or failing to queue the
data collector set stop. The HRESULT returned from the Stop function only
specifies whether the queuing operation failed or succeeded. If the queuing
operation succeeded, (S_OK) is returned even if the data collector set did not
stop. The only method for detecting that the asynchronous stop failed is to
poll the Status property to check if the data collector set is still running.
In synchronous mode, the method returns when the data collector set actually
stops and the HRESULT only returns (S_OK) if the data collector set stopped
successfully.</p><p><b>Return Values: </b>This method MUST return an
HRESULT with the severity bit clear on success as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>;
otherwise, it MUST return one of the errors as defined in <a href="590752a5-ddc3-49e4-9914-147a90bd0193" data-linktype="relative-path">2.2.1</a> or one of the errors
as defined in [MS-ERREF] section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>.</p></div>