DataSet.InferXmlSchema Method (String, String[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public void InferXmlSchema(
	string fileName,
	string[] nsArray
)

Parameters

fileName
Type: System.String

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

nsArray
Type: System.String[]

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

Exception Condition
SecurityException

FileIOPermission is not set to Read.

FileIOPermission

For reading and writing files. Associated enumeration: FileIOPermissionAccess.

.NET Framework
Available since 1.1
Return to top
Show: