DataSet.InferXmlSchema Method

Definition

Applies XML schema to the DataSet.

Overloads

InferXmlSchema(Stream, String[])

Applies the XML schema from the specified Stream to the DataSet.

InferXmlSchema(TextReader, String[])

Applies the XML schema from the specified TextReader to the DataSet.

InferXmlSchema(String, String[])

Applies the XML schema from the specified file to the DataSet.

InferXmlSchema(XmlReader, String[])

Applies the XML schema from the specified XmlReader to the DataSet.

InferXmlSchema(Stream, String[])

Source:
DataSet.cs
Source:
DataSet.cs
Source:
DataSet.cs

Applies the XML schema from the specified Stream to the DataSet.

C#
public void InferXmlSchema(System.IO.Stream? stream, string[]? nsArray);
C#
public void InferXmlSchema(System.IO.Stream stream, string[] nsArray);

Parameters

stream
Stream

The Stream from which to read the schema.

nsArray
String[]

An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InferXmlSchema(TextReader, String[])

Source:
DataSet.cs
Source:
DataSet.cs
Source:
DataSet.cs

Applies the XML schema from the specified TextReader to the DataSet.

C#
public void InferXmlSchema(System.IO.TextReader? reader, string[]? nsArray);
C#
public void InferXmlSchema(System.IO.TextReader reader, string[] nsArray);

Parameters

reader
TextReader

The TextReader from which to read the schema.

nsArray
String[]

An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InferXmlSchema(String, String[])

Source:
DataSet.cs
Source:
DataSet.cs
Source:
DataSet.cs

Applies the XML schema from the specified file to the DataSet.

C#
public void InferXmlSchema(string fileName, string[]? nsArray);
C#
public void InferXmlSchema(string fileName, string[] nsArray);

Parameters

fileName
String

The name of the file (including the path) from which to read the schema.

nsArray
String[]

An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

Exceptions

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InferXmlSchema(XmlReader, String[])

Source:
DataSet.cs
Source:
DataSet.cs
Source:
DataSet.cs

Applies the XML schema from the specified XmlReader to the DataSet.

C#
public void InferXmlSchema(System.Xml.XmlReader? reader, string[]? nsArray);
C#
public void InferXmlSchema(System.Xml.XmlReader reader, string[] nsArray);

Parameters

reader
XmlReader

The XMLReader from which to read the schema.

nsArray
String[]

An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1