Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
OnStatus Method
See Also 
Leadtools.Dicom Namespace > DicomPrintScu Class : OnStatus Method




status
Specifies the status of the Print SCU.
operationStatus
When the parameter status is one of the ReceivexxxRsp enumerated status values (such as DicomPrintScuStatus.ReceiveCreateFilmSessionRsp), operationStatus will be either DicomCommandStatusType.Success (in case a Success or Warning status code is specified in the response of the Print SCP) or the Failure status code specified in the response. For all other enumerated values of status, operationStatus is meaningless and is always set to 0.
Called to indicate the status of the Print SCU.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub OnStatus( _
   ByVal status As DicomPrintScuStatus, _
   ByVal operationStatus As DicomCommandStatusType _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim status As DicomPrintScuStatus
Dim operationStatus As DicomCommandStatusType
 
instance.OnStatus(status, operationStatus)
C# 
public virtual void OnStatus( 
   DicomPrintScuStatus status,
   DicomCommandStatusType operationStatus
)
Managed Extensions for C++ 
public: virtual void OnStatus( 
   DicomPrintScuStatus status,
   DicomCommandStatusType operationStatus
) 
C++/CLI 
public:
virtual void OnStatus( 
   DicomPrintScuStatus status,
   DicomCommandStatusType operationStatus
) 

Parameters

status
Specifies the status of the Print SCU.
operationStatus
When the parameter status is one of the ReceivexxxRsp enumerated status values (such as DicomPrintScuStatus.ReceiveCreateFilmSessionRsp), operationStatus will be either DicomCommandStatusType.Success (in case a Success or Warning status code is specified in the response of the Print SCP) or the Failure status code specified in the response. For all other enumerated values of status, operationStatus is meaningless and is always set to 0.

Example

For an example, refer to Associate.

Remarks

As an example, when the method CreateFilmSession is called to create a Film Session, and assuming that the method succeeds, the callback method OnStatus will be called twice: The first time with status set to DicomPrintScuStatus.SendCreateFilmSessionRQ and operationStatus set to 0, and the second time with status set to DicomPrintScuStatus.ReceiveCreateFilmSessionRsp and operationStatus set to DicomCommandStatusType.Success.

When the parameter status is one of the ReceivexxxRsp enumerated status values, the parameter operationStatus is determined as follows:

The implementation of the DicomPrintScu class for this method simply does nothing. In order to make use of this callback method, you should create a new class derived from the DicomPrintScu class and override the method providing the desired implementation.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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