G
Guest
The exception class has a protected property HResult. If I want to catch a particular exception, I need to know it's HResult and I need to access the HResult.
Every attempt I've made to access it has failed. When I hover my mouse over the code the message is something like "Hresult is not accessible under these circumstances because it is a protected property.
The second problem is that only a few exceptions have a 'name'. It seems amazing to me that in the 4+GB MSDN library, I can't find a listing of Hresults and the errors they correspond to. Either there is a listing and I just can't find it, or Microsoft has been terribly negligent
Can somebody help me on both these matters
polynomial5d
Every attempt I've made to access it has failed. When I hover my mouse over the code the message is something like "Hresult is not accessible under these circumstances because it is a protected property.
The second problem is that only a few exceptions have a 'name'. It seems amazing to me that in the 4+GB MSDN library, I can't find a listing of Hresults and the errors they correspond to. Either there is a listing and I just can't find it, or Microsoft has been terribly negligent
Can somebody help me on both these matters
polynomial5d