Definition at line 1691 of file DataSet.cs.
1692 {
1694 long scopeId = DataCommonEventSource.Log.EnterScope(
"<ds.DataSet.ReadXml|INFO> {0}, denyResolving={1}",
ObjectID,
denyResolving);
1695 try
1696 {
1697 disposable = TypeLimiter.EnterRestrictedScope(
this);
1699 try
1700 {
1701 bool flag = false;
1705 int depth = -1;
1710 if (reader == null)
1711 {
1712 return result;
1713 }
1715 {
1717 }
1719 {
1721 }
1726 {
1727 depth = reader.
Depth;
1728 }
1730 {
1731 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
1732 {
1736 }
1738 {
1741 }
1743 {
1746 }
1748 {
1749 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
1750 }
1753 {
1755 for (
int i = 0;
i < attributeCount;
i++)
1756 {
1758 if (reader.
NamespaceURI.Equals(
"http://www.w3.org/2000/xmlns/"))
1759 {
1761 continue;
1762 }
1766 }
1767 }
1771 {
1772 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
1773 {
1776 }
1778 {
1782 continue;
1783 }
1785 {
1788 continue;
1789 }
1791 {
1792 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
1793 }
1794 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
1795 {
1799 continue;
1800 }
1802 {
1804 }
1806 {
1807 continue;
1808 }
1809 flag = true;
1811 {
1814 continue;
1815 }
1817 {
1819 }
1823 }
1828 {
1832 {
1834 }
1835 }
1837 {
1839 }
1842 {
1844 }
1846 {
1849 {
1852 {
1854 }
1855 try
1856 {
1858 }
1859 finally
1860 {
1862 }
1863 }
1864 }
1866 {
1868 {
1872 try
1873 {
1875 }
1876 finally
1877 {
1879 }
1880 }
1882 {
1884 }
1885 }
1886 }
1887 return result;
1888 }
1889 finally
1890 {
1891 }
1892 }
1893 finally
1894 {
1896 DataCommonEventSource.Log.ExitScope(scopeId);
1897 }
1898 }
DataTableCollection Tables
void ReadXDRSchema(XmlReader reader)
void ReadXmlDiffgram(XmlReader reader)
void ReadXSDSchema(XmlReader reader, bool denyResolving)
void ReadEndElement(XmlReader reader)
bool MoveToElement(XmlReader reader, int depth)
bool Contains(string? name)
string? GetAttribute(string name)
bool MoveToAttribute(string name)
virtual bool HasAttributes
virtual XmlNodeType MoveToContent()
References System.Data.DataSet._fTopLevelTable, System.Data.DataSet._namespaceURI, System.Xml.XmlReader.AttributeCount, System.Data.DataTableCollection.Contains(), System.Data.InternalDataCollectionBase.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Data.DataSet.DataSetName, System.Data.ExceptionBuilder.DataSetUnsupportedSchema(), System.Xml.XmlReader.Depth, System.Runtime.Serialization.Dictionary, System.Data.TypeLimiter.EnterRestrictedScope(), System.Xml.XmlReader.EOF, System.Xml.XmlReader.GetAttribute(), System.Xml.XmlReader.HasAttributes, System.Data.InferSchema, System.Xml.XmlReader.LocalName, System.Data.DataCommonEventSource.Log, System.Xml.XmlReader.MoveToAttribute(), System.Xml.XmlReader.MoveToContent(), System.Data.DataSet.MoveToElement(), System.Xml.XmlReader.Name, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Data.DataSet.ObjectID, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.Read(), System.Data.DataSet.ReadEndElement(), System.Data.DataSet.ReadXDRSchema(), System.Data.DataSet.ReadXmlDiffgram(), System.Data.DataSet.ReadXSDSchema(), System.Data.DataSet.Tables, System.value, and System.Xml.XmlReader.Value.