共用方式為


IDebugExpression2::Abort

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method cancels asynchronous expression evaluation as started by a call to the EvaluateAsync method.

Syntax

HRESULT Abort(
   void
);
int Abort();

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

When asynchronous expression evaluation is cancelled, do not sent an IDebugExpressionEvaluationCompleteEvent2 event to the event callback passed to the Attach or Attach methods.

See also