Datatable To File

Converts a DataTable object to an XML file.


⬅️INPUT

Parameter

Type

Required

Description

Input

DataTable

✅Yes

DataTable to convert

FilePath

string

❌No

Path where the XML file will be saved


➡️OUTPUT

Parameter

Type

Description

IsDataTableToFileSuccessful

Boolean

Whether the operation succeeded

DataTableToFileMessage

String

Status/error message

DataTableToBinaryResult

Byte[]

Binary result of the XML


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Throw exception on error