CancelOperation method

The method cancels an operation that was started by a SearchFolder, OpenDoc, or RetrieveDoc method.

Method
short CancelOperation ( )
Description
Cancels an operation that was started by a SearchFolder, OpenDoc, or RetrieveDoc method.
Return Value
Refer to return codes.
Also see
SearchFolder, OpenDoc, WasOperationCancelled, and ShowWaitCursorDuringCancelableOperation methods

C/C + +

 CArsOle * pArsCtrl;
 short rc;
   .
   .
  rc = pArsCtrl->CancelOperation( );
  if ( rc != ARS_OLE_RC_SUCCESS )
    ERROR;
   .
   .

Visual Basic

Dim rc As Integer

 .
 .

rc = ArsOle.CancelOperation ()
If rc <> ARS_OLE_RC_SUCCESS Then
   MsgBox "ERROR"
   End
End If

 .
 .