←Select platform

StatusFormatFlags Enumeration

Summary

Used with any of the StatusXxxx.ToString(StatusFormatFlags,separator,tab) methods to customize the string return value.

Syntax
C#
C++/CLI
[FlagsAttribute()] 
public enum StatusFormatFlags 
public: 
   [FlagsAttribute] 
   enum class StatusFormatFlags sealed 
Members
Value Member Description
0x00000000 None None
0x00000001 IgnoreStatus Exclude the (0000,0900) Status tag and value in the return string.
0x00000002 IgnoreAffectedSopClassUid Exclude the (0000,0002) AffectedSopClassUid tag and value in the return string.
0x00000004 IgnoreAffectedSopInstanceUid Exclude the (0000,1000) AffectedSopInstanceUid tag and value in the return string.
0x00000008 IgnoreOffendingElement Exclude the (0000,0901) OffendingElement tag and value in the return string.
0x00000010 IgnoreErrorComment Exclude the (0000,0902) ErrorComment tag and value in the return string.
0x00000020 IgnoreErrorID Exclude the (0000,0903) ErrorID tag and value in the return string.
0x00000040 IgnoreAttributeIdentifierList Exclude the (0000,1005) AttributeIdentifierList tag and value in the return string.
0x00000080 IgnoreEventTypeID Exclude the (0000,1002) EventTypeID tag and value in the return string.
0x00000100 IgnoreActionTypeID Exclude the (0000,1008) ActionTypeID tag and value in the return string.
0x000001EF OnlyErrorComment Only include (0000,0902) the ErrorComment and value in the return string.
0x000001FF IgnoreAll Ignore all the tags and values listed in this table in the return string.
0x00000200 ExcludeHeader Excludes all the tag names in this table, but includes all the tag values in the return string.
Example
C#
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 StatusAllDicomNet : DicomNet 
{ 
   public StatusAllDicomNet(string path, DicomNetSecurityMode mode) : base(path, mode) 
   { 
   } 
 
   public StatusAllDicomNet(string path, DicomNetSecurityMode mode, bool reserved) : base(path, mode, reserved) 
   { 
   } 
 
   protected override void OnReceiveCFindResponse(byte presentationID, int messageID, string affectedClass, DicomCommandStatusType status, DicomDataSet dataSet) 
   { 
      using (DicomDataSet cs = GetCommandSet()) 
      { 
         StatusAll statusAll = new StatusAll(); 
         statusAll = cs.Get<StatusAll>(); 
         string friendlyString = string.Empty; 
 
         // Log the friendlyString giving the status and any status-related optional command set elements 
         friendlyString = statusAll.ToString(); 
         Console.WriteLine(friendlyString); 
 
         // Log the friendlyString but ignore the status 
         friendlyString = statusAll.ToString(StatusFormatFlags.IgnoreStatus, "\n", "\t"); 
         Console.WriteLine(friendlyString); 
      } 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.