.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 _
public void InferXmlSchema(
   string fileName,
   string[] nsArray
public: void InferXmlSchema(
   String* fileName,
   String* nsArray __gc[]
public function InferXmlSchema(
   fileName : String,
   nsArray : String[]


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


Exception Type Condition
SecurityException FileIOPermission is not set to Read.


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