DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / Read Method / Read(Stream) Method

The Stream from which to read.







In This Topic
    Read(Stream) Method
    In This Topic
    Reads from a standard Stream
    Syntax
    'Declaration
     
    
    Public Overloads Sub Read( _
       ByVal Stream As System.IO.Stream _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Stream As System.IO.Stream
     
    instance.Read(Stream)
    public void Read( 
       System.IO.Stream Stream
    )
    public procedure Read( 
        Stream: System.IO.Stream
    ); 
    public function Read( 
       Stream : System.IO.Stream
    );
    public: void Read( 
       System.IO.Stream* Stream
    ) 
    public:
    void Read( 
       System.IO.Stream^ Stream
    ) 

    Parameters

    Stream

    The Stream from which to read.

    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.

    It is the caller's responsibility to position the stream correctly before calling this method - no rewind is done internally.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also