DataSet.InferXmlSchema DataSet.InferXmlSchema DataSet.InferXmlSchema DataSet.InferXmlSchema Method

定义

将 XML 架构应用于 DataSetApplies XML schema to the DataSet.

重载

InferXmlSchema(Stream, String[]) InferXmlSchema(Stream, String[]) InferXmlSchema(Stream, String[])

将指定 Stream 中的 XML 架构应用于 DataSetApplies the XML schema from the specified Stream to the DataSet.

InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[])

将指定 TextReader 中的 XML 架构应用于 DataSetApplies the XML schema from the specified TextReader to the DataSet.

InferXmlSchema(String, String[]) InferXmlSchema(String, String[]) InferXmlSchema(String, String[]) InferXmlSchema(String, String[])

将指定文件中的 XML 架构应用于 DataSetApplies the XML schema from the specified file to the DataSet.

InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[])

将指定 XmlReader 中的 XML 架构应用于 DataSetApplies the XML schema from the specified XmlReader to the DataSet.

InferXmlSchema(Stream, String[]) InferXmlSchema(Stream, String[]) InferXmlSchema(Stream, String[])

将指定 Stream 中的 XML 架构应用于 DataSetApplies the XML schema from the specified Stream to the DataSet.

public:
 void InferXmlSchema(System::IO::Stream ^ stream, cli::array <System::String ^> ^ nsArray);
public void InferXmlSchema (System.IO.Stream stream, string[] nsArray);
member this.InferXmlSchema : System.IO.Stream * string[] -> unit

参数

stream
Stream Stream Stream Stream

将从其中读取该架构的 StreamThe Stream from which to read the schema.

nsArray
String[]

要从架构推理中排除的命名空间统一资源标识符 (URI) 字符串的数组。An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

另请参阅

InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[]) InferXmlSchema(TextReader, String[])

将指定 TextReader 中的 XML 架构应用于 DataSetApplies the XML schema from the specified TextReader to the DataSet.

public:
 void InferXmlSchema(System::IO::TextReader ^ reader, cli::array <System::String ^> ^ nsArray);
public void InferXmlSchema (System.IO.TextReader reader, string[] nsArray);
member this.InferXmlSchema : System.IO.TextReader * string[] -> unit
Public Sub InferXmlSchema (reader As TextReader, nsArray As String())

参数

reader
TextReader TextReader TextReader TextReader

将从其中读取该架构的 TextReaderThe TextReader from which to read the schema.

nsArray
String[]

要从架构推理中排除的命名空间统一资源标识符 (URI) 字符串的数组。An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

另请参阅

InferXmlSchema(String, String[]) InferXmlSchema(String, String[]) InferXmlSchema(String, String[]) InferXmlSchema(String, String[])

将指定文件中的 XML 架构应用于 DataSetApplies the XML schema from the specified file to the DataSet.

public:
 void InferXmlSchema(System::String ^ fileName, cli::array <System::String ^> ^ nsArray);
public void InferXmlSchema (string fileName, string[] nsArray);
member this.InferXmlSchema : string * string[] -> unit
Public Sub InferXmlSchema (fileName As String, nsArray As String())

参数

fileName
String String String String

从中读取架构的文件的名称(包括路径)。The name of the file (including the path) from which to read the schema.

nsArray
String[]

要从架构推理中排除的命名空间统一资源标识符 (URI) 字符串的数组。An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

异常

安全性

FileIOPermission
用于读取和写入文件。For reading and writing files. 关联的枚举:FileIOPermissionAccessAssociated enumeration: FileIOPermissionAccess.

另请参阅

InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[]) InferXmlSchema(XmlReader, String[])

将指定 XmlReader 中的 XML 架构应用于 DataSetApplies the XML schema from the specified XmlReader to the DataSet.

public:
 void InferXmlSchema(System::Xml::XmlReader ^ reader, cli::array <System::String ^> ^ nsArray);
public void InferXmlSchema (System.Xml.XmlReader reader, string[] nsArray);
member this.InferXmlSchema : System.Xml.XmlReader * string[] -> unit
Public Sub InferXmlSchema (reader As XmlReader, nsArray As String())

参数

reader
XmlReader XmlReader XmlReader XmlReader

将从其中读取该架构的 XMLReaderThe XMLReader from which to read the schema.

nsArray
String[]

要从架构推理中排除的命名空间统一资源标识符 (URI) 字符串的数组。An array of namespace Uniform Resource Identifier (URI) strings to be excluded from schema inference.

另请参阅

适用于