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

OnStatus Method








Specifies the status of the Print SCU.
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. .NET support
Syntax
public virtual void OnStatus( 
   DicomPrintScuStatus status,
   DicomCommandStatusType operationStatus
)
'Declaration
 
Public Overridable Sub OnStatus( _
   ByVal status As DicomPrintScuStatus, _
   ByVal operationStatus As DicomCommandStatusType _
) 
'Usage
 
Dim instance As DicomPrintScu
Dim status As DicomPrintScuStatus
Dim operationStatus As DicomCommandStatusType
 
instance.OnStatus(status, operationStatus)
public virtual void OnStatus( 
   DicomPrintScuStatus status,
   DicomCommandStatusType operationStatus
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomPrintScu.OnStatus( 
   status ,
   operationStatus 
)
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.
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.

Example
For an example, refer to Associate(String,Int32,String,String,DicomPrintScuPrintManagementClassFlags).
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

DicomPrintScu Class
DicomPrintScu Members
GetLastOperationStatus Method

 

 


Products | Support | Contact Us | Copyright Notices

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

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