DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Read Method / Read(Stream,ReadBehaviours) Method

The Stream from which to read.

ReadBehavioursObject to control individual read operation






In This Topic
    Read(Stream,ReadBehaviours) Method
    In This Topic
    Reads from a system IO stream
    Syntax
    'Declaration
     
    
    Public Overloads Sub Read( _
       ByVal Stream As System.IO.Stream, _
       Optional ByVal readBehaviours As ReadBehaviours _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim Stream As System.IO.Stream
    Dim readBehaviours As ReadBehaviours
     
    instance.Read(Stream, readBehaviours)
    public void Read( 
       System.IO.Stream Stream,
       ReadBehaviours readBehaviours
    )
    public procedure Read( 
        Stream: System.IO.Stream;
        readBehaviours: ReadBehaviours
    ); 
    public function Read( 
       Stream : System.IO.Stream,
       readBehaviours : ReadBehaviours
    );
    public: void Read( 
       System.IO.Stream* Stream,
       ReadBehaviours* readBehaviours
    ) 
    public:
    void Read( 
       System.IO.Stream^ Stream,
       ReadBehaviours^ readBehaviours
    ) 

    Parameters

    Stream

    The Stream from which to read.

    readBehaviours
    ReadBehavioursObject to control individual read operation
    Remarks

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

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

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also