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




error
An error code.
Notifies the SCU that the connection attempt is complete.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnConnect( _
   ByVal error As DicomExceptionCode _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomNet
Dim error As DicomExceptionCode
 
instance.OnConnect(error)
C# 
protected virtual void OnConnect( 
   DicomExceptionCode error
)
Managed Extensions for C++ 
protected: virtual void OnConnect( 
   DicomExceptionCode error
) 
C++/CLI 
protected:
virtual void OnConnect( 
   DicomExceptionCode error
) 

Parameters

error
An error code.

Example

For an example, refer to SendAssociateRequest.

Remarks

A call to this method is generated on an SCU when an SCP calls Accept. It is generated whether or not the connection attempt is successful. It is also generated when a connection attempt has timed-out.

To customize this method, you must derive a class from DicomNet and override this method.

A DICOM Association must be established between an SCU and an SCP before any DICOM messages or data can be transmitted between them. For more information on creating a DICOM Association, refer to Creating a DICOM Associate Connection.

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