Multiple choice .net vb

Where do you find COMException class

  1. System.Runtime.Interopservices

  2. System.XML

  3. System. Data

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The COMException class is found in System.Runtime.InteropServices namespace, which provides services for interacting with COM components. This namespace contains types specifically designed for COM interop scenarios.

AI explanation

COMException is part of the .NET interop layer, which lives in the System.Runtime.InteropServices namespace — the namespace dedicated to classes and types that let managed code communicate with unmanaged COM components. It has nothing to do with System.XML (XML processing) or System.Data (ADO.NET data access), which is why those namespaces don't contain it.