Used with any of the StatusXxxx.ToString(StatusFormatFlags,separator,tab) methods to customize the string return value.
[FlagsAttribute()]
public enum StatusFormatFlags
public:
[FlagsAttribute]
enum class StatusFormatFlags sealed
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. |
This is used with any of the StatusXxxx.ToString(StatusFormatFlags,separator,tab) methods below to customize the ToString() return value:
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);
}
}
}
Leadtools.Dicom.Common.DataTypes.Status Namespace
StatusFailureClassInstanceConflict
StatusFailureDuplicateSopInstance
StatusFailureInvalidArgumentValue
StatusFailureInvalidSopInstance
StatusFailureNoSuchSopInstance
StatusFailureProcessingFailure
StatusFailureRefusedNotAuthorized
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document