Parameters
- Reason
The "Cause" of the Abort
- Source
The "Cause" of the Abort
The "Cause" of the Abort
The "Cause" of the Abort
The "Cause" of the Abort
The "Cause" of the Abort
An A-ABORT request is sent, and the association is then terminated.
The full meanings of the parameters are defined in DICOM Standard part 8, detailed as below:
Source
0 - DICOM UL service-user (initiated abort)
1 - Reserved
2 - DICOM UL service-provider (initiated abort)
Reason
0 - reason-not-specified
1 - unrecognized-PDU
2 - unexpected-PDU
3 - reserved
4 - unrecognized-PDU parameter
5 - unexpected-PDU parameter
6 - invalid-PDU-parameter value
using DicomObjects; using DicomObjects.DicomUIDs; using (var cn = new DicomAssociation()) { byte reason = 0; // reason-not-specified byte source = 0; // DICOM UL service-user (initiated abort) cn.RequestedContexts.Add(SOPClasses.Verification); cn.Open("localhost", 104, "callingAET", "calledAET"); cn.Echo(); // cn.Close() is unnecessary here; Abort already closes the association cn.Abort(reason, source); }