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

The Stream to which to write.

Specifies the full UID of the transfer syntax with which the data is to be saved when Part 10 format is used. If omitted, the little-endian explicit VR transfer syntax is used.

The customized MetaHeader (only Group 2 Elements)







In This Topic
    Write(Stream,String,DicomDataSet) Method
    In This Topic
    Writes dataset to a system IO stream object with specified transfer syntax and meta header
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal Stream As System.IO.Stream, _
       ByVal TransferSyntax As System.String, _
       ByVal MetaHeader As DicomDataSet _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Stream As System.IO.Stream
    Dim TransferSyntax As System.String
    Dim MetaHeader As DicomDataSet
     
    instance.Write(Stream, TransferSyntax, MetaHeader)
    public void Write( 
       System.IO.Stream Stream,
       System.string TransferSyntax,
       DicomDataSet MetaHeader
    )
    public procedure Write( 
        Stream: System.IO.Stream;
        TransferSyntax: System.String;
        MetaHeader: DicomDataSet
    ); 
    public function Write( 
       Stream : System.IO.Stream,
       TransferSyntax : System.String,
       MetaHeader : DicomDataSet
    );
    public: void Write( 
       System.IO.Stream* Stream,
       System.string* TransferSyntax,
       DicomDataSet* MetaHeader
    ) 
    public:
    void Write( 
       System.IO.Stream^ Stream,
       System.String^ TransferSyntax,
       DicomDataSet^ MetaHeader
    ) 

    Parameters

    Stream

    The Stream to which to write.

    TransferSyntax

    Specifies the full UID of the transfer syntax with which the data is to be saved when Part 10 format is used. If omitted, the little-endian explicit VR transfer syntax is used.

    MetaHeader

    The customized MetaHeader (only Group 2 Elements)

    Remarks

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

    The provided meta header should only contain group 2 elements.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also