.NET Framework Class Library  

DataSet.InferXmlSchema Method (String, String[])

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

[Visual Basic]
Overloads Public Sub InferXmlSchema( _
   ByVal fileName As String, _
   ByVal nsArray() As String _
)
[C#]
public void InferXmlSchema(
   string fileName,
   string[] nsArray
);
[C++]
public: void InferXmlSchema(
   String* fileName,
   String* nsArray __gc[]
);
[JScript]
public function InferXmlSchema(
   fileName : String,
   nsArray : String[]
);

Parameters

fileName
The name of the file (including the path) from which to read the schema.
nsArray
An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

Exceptions

Exception Type Condition
SecurityException FileIOPermission is not set to Read.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework - Windows CE .NET

.NET Framework Security: 

See Also

DataSet Class | DataSet Members | System.Data Namespace | DataSet.InferXmlSchema Overload List