Does anybody know what types o开发者_开发知识库f exceptions can be thrown by the method "DataSet.ReadXml(string filename)"?
There only "SecurityException" specified in the MSDN. But I think that there is more possible exceptions that can be thrown from this method. Or maybe I'm wrong?
Thanks for advance!
As the documentation (http://msdn.microsoft.com/en-us/library/360dye2a.aspx) states, an InvalidOperationException will also be thrown if there is a problem parsing the Xml in the specified file.
The documentation is incomplete there. There might be also a XMLException thrown, which is a generic exception for XML namespace.
精彩评论