IfCanceledThrowException Method

Summary
Throws an exception if the user canceled the execution of the command.
Syntax
C#
VB
C++
protected virtual void IfCanceledThrowException() 
  
Protected Sub IfCanceledThrowException()  
protected: 
void IfCanceledThrowException();  
Remarks

Calling this method throws Leadtools.Dicom.Scp.Command.Exceptions.DICOMCommandOperationCanceledException exception.

This method can be called by the inherited classes at any time to throw an exception if the user called the Cancel method. Usually inherited classes will call this method if the execution can be terminated safely.

Inherited classes should catch the Leadtools.Dicom.Scp.Command.Exceptions.DICOMCommandOperationCanceledException exception to perform any cleaning or handle the communication temination. For example, some DICOM commands may send a response with the status of DicomCommandStatusType.Cancel and abort the connection.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Scp Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.