DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / CloseFilesAfterReading Property






In This Topic
    CloseFilesAfterReading Property (DicomGlobal)
    In This Topic
    Controls how pixel data is read from disk
    Syntax
    'Declaration
     
    
    Public Shared Property CloseFilesAfterReading As System.Boolean
    'Usage
     
    
    Dim value As System.Boolean
     
    DicomGlobal.CloseFilesAfterReading = value
     
    value = DicomGlobal.CloseFilesAfterReading
    public static System.bool CloseFilesAfterReading {get; set;}
    public read-write property CloseFilesAfterReading: System.Boolean; static; 
    public static function get,set CloseFilesAfterReading : System.boolean
    public: __property static System.bool get_CloseFilesAfterReading();
    public: __property static void set_CloseFilesAfterReading( 
       System.bool value
    );
    public:
    static property System.bool CloseFilesAfterReading {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks

    If true, then all the pixel data is read from the disk at the time of reading the file, and the file is then closed. if false, then the file is kept open and pixel data is only read as and when required.

    The default setting is true which improves memory usage, but has the downside that the file is locked. If you wish to over-write files which have been opened, then set this value to true before reading the files.

    The default value is false

    This corresponds to the old "DisableMemoryMapping" registry setting.

    If required, this behaviour can be controlled on a file by file basis by using the CloseFilesAfterReading property of the ReadBehaviours class, combined with the appropriate override of DicomDataSet.Read

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also