LEADTOOLS Medical (Leadtools.Dicom.Scp assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
IfCanceledThrowException Method
See Also 
Leadtools.Dicom.Scp.Command Namespace > DicomCommand Class : IfCanceledThrowException Method



Throws an exception if the user canceled the execution of the command.

Syntax

Visual Basic (Declaration) 
Protected Sub IfCanceledThrowException() 
Visual Basic (Usage)Copy Code
Dim instance As DicomCommand
 
instance.IfCanceledThrowException()
C# 
protected void IfCanceledThrowException()
C++/CLI 
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 DicomCommand.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: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Scp requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features