DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / Write Method / Write(String,String,DicomDataSet) Method

The name of the file to write.

This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the current directory is set correctly, or that a fully qualified filename is provided.

Specifies the full UID of the transfer syntax with which the file 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.

The customized MetaHeader (only Group 2 Elements)




In This Topic
    Write(String,String,DicomDataSet) Method
    In This Topic
    Writes dataset to an external DICOM file with specified transfer syntax and meta header
    Syntax
    'Declaration
     
    Public Overloads Sub Write( _
       ByVal FileName As String, _
       ByVal TransferSyntax As String, _
       ByVal MetaHeader As DicomDataSet _
    ) 
    'Usage
     
    Dim instance As DicomDataSet
    Dim FileName As String
    Dim TransferSyntax As String
    Dim MetaHeader As DicomDataSet
     
    instance.Write(FileName, TransferSyntax, MetaHeader)
    public void Write( 
       string FileName,
       string TransferSyntax,
       DicomDataSet MetaHeader
    )
    public:
    void Write( 
       String^ FileName,
       String^ TransferSyntax,
       DicomDataSet^ MetaHeader
    ) 

    Parameters

    FileName

    The name of the file to write.

    This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the current directory is set correctly, or that a fully qualified filename is provided.

    TransferSyntax

    Specifies the full UID of the transfer syntax with which the file 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.

    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.0 or higher

    See Also