LEADTOOLS Medical (Leadtools.Dicom.Scp assembly)
LEAD Technologies, Inc

IfCanceledThrowException Method






Throws an exception if the user canceled the execution of the command.
Syntax
protected void IfCanceledThrowException()
'Declaration
 
Protected Sub IfCanceledThrowException() 
'Usage
 
Dim instance As DicomCommand
 
instance.IfCanceledThrowException()
protected void IfCanceledThrowException()
 function Leadtools.Dicom.Scp.Command.DicomCommand.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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomCommand Class
DicomCommand Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.Scp requires a Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features