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(); |
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7