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







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

    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.

    Remarks

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

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also