DicomObjects.NET.8.48 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 System.String, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As System.String
    Dim ReadBehaviour As ReadBehaviours
     
    instance.Read(FileName, ReadBehaviour)
    public void Read( 
       System.string FileName,
       ReadBehaviours ReadBehaviour
    )
    public procedure Read( 
        FileName: System.String;
        ReadBehaviour: ReadBehaviours
    ); 
    public function Read( 
       FileName : System.String,
       ReadBehaviour : ReadBehaviours
    );
    public: void Read( 
       System.string* FileName,
       ReadBehaviours* ReadBehaviour
    ) 
    public:
    void Read( 
       System.String^ FileName,
       ReadBehaviours^ 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: .NET CLR 4.8 or higher

    See Also