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




source
The source of the Association aborting.
reason
The reason for the Association aborting. If the source of the aborting is DicomAbortSourceType.User, the reasons for the aborting are not significant.
Notifies a connection that an Abort message was received.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnReceiveAbort( _
   ByVal source As DicomAbortSourceType, _
   ByVal reason As DicomAbortReasonType _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomNet
Dim source As DicomAbortSourceType
Dim reason As DicomAbortReasonType
 
instance.OnReceiveAbort(source, reason)
C# 
protected virtual void OnReceiveAbort( 
   DicomAbortSourceType source,
   DicomAbortReasonType reason
)
Managed Extensions for C++ 
protected: virtual void OnReceiveAbort( 
   DicomAbortSourceType source,
   DicomAbortReasonType reason
) 
C++/CLI 
protected:
virtual void OnReceiveAbort( 
   DicomAbortSourceType source,
   DicomAbortReasonType reason
) 

Parameters

source
The source of the Association aborting.
reason
The reason for the Association aborting. If the source of the aborting is DicomAbortSourceType.User, the reasons for the aborting are not significant.

Example

For an example, refer to SendAbort.

Remarks

A call to this method is generated on a connection when the peer member of the connection calls SendAbort.

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

Please note that it is preferable to close a DICOM Association using the SendReleaseRequest and SendReleaseResponse. For more information on closing a DICOM Association, refer to Closing 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