DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / Write Method / Write(Stream,String) 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. For details of the currently supported syntaxes, see the entry.




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

    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. For details of the currently supported syntaxes, see the entry.

    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 3.5 or higher

    See Also