nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / DataSetWriter

DataSetWriter

Full name Microsoft.VisualBasic.Text.Xml.Linq.DataSetWriter`1 Assembly Microsoft.VisualBasic.Runtime Members 5

Write a very large dataset in Xml format

00 Remarks

usually be used for dump the database table data to a xml file

the output xml file format is compatible with the .NET DataSet xml format

see also: https://docs.microsoft.com/en-us/dotnet/api/system.data.dataset.writexml?view=net-5.0

example:

 Dim writer As New DataSetWriter(Of biocad_registryModel.molecule)("molecules.xml")
 
 For Each mol As biocad_registryModel.molecule In registry.molecule.all(Of biocad_registryModel.molecule)()
     Call writer.Write(mol)
 Next
 
 Call writer.Dispose()

01 Syntax

Microsoft.VisualBasic.Text.Xml.Linq.DataSetWriter`1

02 Methods

NameOverloadsSummary
.ctor 1 Create a new xml dataset writer
Write 1
Flush 1
Dispose 1

03 Fields

NameOverloadsSummary
DataSetPrefix 1

04 Members

method .ctor #
#ctor(String, XmlEncodings)

Create a new xml dataset writer

Parameters
NameTypeDescription
fileString

-

encodingXmlEncodings

-

field DataSetPrefix #
DataSetPrefix
method Write #
Write(T)
method Flush #
Flush()
method Dispose #
Dispose()