DicomObjects.NetStandard Documentation
DicomObjects Namespace / ReadBehaviours Class / ThrowNotDICOMDIRError Property



In This Topic
    ThrowNotDICOMDIRError Property
    In This Topic
    Controls whether to throw an exception if a file which is apparently a DICOM does not contain the expected DICOMDIR offset attributes.
    Syntax
    'Declaration
     
    
    Public Property ThrowNotDICOMDIRError As Boolean
    'Usage
     
    
    Dim instance As ReadBehaviours
    Dim value As Boolean
     
    instance.ThrowNotDICOMDIRError = value
     
    value = instance.ThrowNotDICOMDIRError
    public bool ThrowNotDICOMDIRError {get; set;}
    public:
    property bool ThrowNotDICOMDIRError {
       bool get();
       void set (    bool value);
    }
    Remarks

    The default value of this property is derived from the ThrowNotDICOMDIRError value of the internal registry, which in turn has a default value of 1, causing this property to be true.

    This error can sometimes be triggered by files which are not DICOMDIRs but which for some reason do not contain a SOP class UID.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also