Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
OnReceive Method
See Also 
Leadtools.Dicom.AddIn.Interfaces Namespace > INotifyReceiveMessage Interface : OnReceive Method



Client
The client this notification applies to.
error
An error code.
pduType
The type of data that was sent.
buffer
Pointer to a buffer that contains all the data that was sent. This includes the Command Set and any associated Data Set.
bytes
The number of bytes of the data specified by buffer.
Client
The client this notification applies to.
error
An error code.
pduType
The type of data that was sent.
buffer
Pointer to a buffer that contains all the data that was sent. This includes the Command Set and any associated Data Set.
bytes
The number of bytes of the data specified by buffer.
Notifies an implementor that data has been received.

Syntax

Visual Basic (Declaration) 
Overridable Sub OnReceive( _
   ByVal Client As DicomClient, _
   ByVal error As DicomExceptionCode, _
   ByVal pduType As DicomPduType, _
   ByVal buffer As IntPtr, _
   ByVal bytes As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As INotifyReceiveMessage
Dim Client As DicomClient
Dim error As DicomExceptionCode
Dim pduType As DicomPduType
Dim buffer As IntPtr
Dim bytes As Integer
 
instance.OnReceive(Client, error, pduType, buffer, bytes)
C# 
virtual void OnReceive( 
   DicomClient Client,
   DicomExceptionCode error,
   DicomPduType pduType,
   IntPtr buffer,
   int bytes
)
C++/CLI 
virtual void OnReceive( 
   DicomClient^ Client,
   DicomExceptionCode error,
   DicomPduType pduType,
   IntPtr buffer,
   int bytes
) 

Parameters

Client
The client this notification applies to.
error
An error code.
pduType
The type of data that was sent.
buffer
Pointer to a buffer that contains all the data that was sent. This includes the Command Set and any associated Data Set.
bytes
The number of bytes of the data specified by buffer.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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