StatusFailureNoSuchAttribute Class (original) (raw)

Summary

A class that represents a No such Attribute status (0105H), and associated optional elements that can be included in the command set of a DIMSE service response.

Syntax

public class StatusFailureNoSuchAttribute : StatusBase 

public: ref class StatusFailureNoSuchAttribute : [StatusBase](datatypes-status-statusbase.html)

Example

This example shows how to override the DicomNet::OnBeforeSendCommandSet event to write status and related optional status elements in a DICOM command set.

using Leadtools.Dicom; using Leadtools.Dicom.Common; using Leadtools.Dicom.Common.Extensions; using Leadtools; using Leadtools.Dicom.Common.Linq.BasicDirectory; using Leadtools.Dicom.Common.DataTypes; using Leadtools.Dicom.Common.DataTypes.Status; public class StatusFailureNoSuchAttributeDicomNet : DicomNet { public StatusFailureNoSuchAttributeDicomNet(string path, DicomNetSecurityMode mode) : base(path, mode) { } public StatusFailureNoSuchAttributeDicomNet(string path, DicomNetSecurityMode mode, bool reserved) : base(path, mode, reserved) { } protected override void OnBeforeSendCommandSet(DicomDataSet cs) { // Return a Status of NoSuchAttribute and set the optional status elements StatusFailureNoSuchAttribute s = new StatusFailureNoSuchAttribute(); s.AttributeIdentifierList.Add(100); s.AttributeIdentifierList.Add(200); s.AttributeIdentifierList.Add(300); cs.Set(s); base.OnBeforeSendCommandSet(cs); } }

Leadtools.Dicom.Common Assembly