DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / Read Method / Read(Stream,ReadBehaviours) Method

The Stream from which to read.

The behaviours to be used when reading this stream




In This Topic
    Read(Stream,ReadBehaviours) Method
    In This Topic
    Reads from a standard Stream, with specific reading behaviour
    Syntax
    'Declaration
     
    Public Overloads Sub Read( _
       ByVal Stream As Stream, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) 
    'Usage
     
    Dim instance As DicomDataSet
    Dim Stream As Stream
    Dim ReadBehaviour As ReadBehaviours
     
    instance.Read(Stream, ReadBehaviour)
    public void Read( 
       Stream Stream,
       ReadBehaviours ReadBehaviour
    )
    public:
    void Read( 
       Stream^ Stream,
       ReadBehaviours^ ReadBehaviour
    ) 

    Parameters

    Stream

    The Stream from which to read.

    ReadBehaviour

    The behaviours to be used when reading this stream

    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.

    This in the only method to provide this additional Behaviour parameter, but all other Read opeations may be performed by creating a suitable stream from the file, byte[] etc., and using a null Password if necessary.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also