DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomDataSet Class / Read Method / Read(String,ReadBehaviours) Method

The name of the file to read.

This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.

The behaviours to be used when reading this stream




In This Topic
    Read(String,ReadBehaviours) Method
    In This Topic
    Reads from a DICOM file, using specific read behaviours
    Syntax
    'Declaration
     
    
    Public Overloads Sub Read( _
       ByVal FileName As String, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As String
    Dim ReadBehaviour As ReadBehaviours
     
    instance.Read(FileName, ReadBehaviour)

    Parameters

    FileName

    The name of the file to read.

    This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Remarks

    This method can read files in either official "Part10" format, with the 128 byte header, or unofficial "Part5" format, without a header. Detection of the type is automatic.

    The file may have been written by the Write method or by other DICOM software.

    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