开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜