开发者

What exceptions can be thrown by DataSet.ReadXml(string)

开发者 https://www.devze.com 2023-02-24 23:25 出处:网络
Does anybody know what types o开发者_开发知识库f exceptions can be thrown by the method \"DataSet.ReadXml(string filename)\"?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消