DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / Write Method / Write(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.

The customized MetaHeader (only Group 2 Elements)







In This Topic
    Write(String,DicomDataSet) Method
    In This Topic
    Writes dataset to an external DICOM file with specified meta header
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal FileName As System.String, _
       ByVal MetaHeader As DicomDataSet _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As System.String
    Dim MetaHeader As DicomDataSet
     
    instance.Write(FileName, MetaHeader)
    public void Write( 
       System.string FileName,
       DicomDataSet MetaHeader
    )
    public procedure Write( 
        FileName: System.String;
        MetaHeader: DicomDataSet
    ); 
    public function Write( 
       FileName : System.String,
       MetaHeader : DicomDataSet
    );
    public: void Write( 
       System.string* FileName,
       DicomDataSet* MetaHeader
    ) 
    public:
    void Write( 
       System.String^ FileName,
       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.

    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