DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / Write Method / Write(Stream,Boolean) Method

The Stream from which to read.

If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the stream, and an appropriate transfer syntax is used, as below.

If FALSE, the stream is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.







In This Topic
    Write(Stream,Boolean) Method
    In This Topic
    Writes dataset to a system IO stream object
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal Stream As System.IO.Stream, _
       ByVal isPart10 As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Stream As System.IO.Stream
    Dim isPart10 As System.Boolean
     
    instance.Write(Stream, isPart10)
    public void Write( 
       System.IO.Stream Stream,
       System.bool isPart10
    )
    public procedure Write( 
        Stream: System.IO.Stream;
        isPart10: System.Boolean
    ); 
    public function Write( 
       Stream : System.IO.Stream,
       isPart10 : System.boolean
    );
    public: void Write( 
       System.IO.Stream* Stream,
       System.bool isPart10
    ) 
    public:
    void Write( 
       System.IO.Stream^ Stream,
       System.bool isPart10
    ) 

    Parameters

    Stream

    The Stream from which to read.

    isPart10

    If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the stream, and an appropriate transfer syntax is used, as below.

    If FALSE, the stream is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.

    Remarks

    The stream may subsequently be read by the Read method or by other DICOM software.

    This method is particularly suitable for use with Delphi, which provides access to streams via classes such as TStreamAdapter.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also