1 type derived from COMException
System.ServiceModel (1)
System\ServiceModel\ComIntegration\MonikerSyntaxException.cs (1)
15
internal class MonikerSyntaxException :
COMException
24 instantiations of COMException
mscorlib (2)
system\oleautbinder.cs (1)
108
throw new
COMException
(Environment.GetResourceString("Interop.COM_TypeMismatch"), unchecked((int)0x80020005));
system\runtime\interopservices\windowsruntime\winrtclassactivator.cs (1)
56
throw new
COMException
(__HResults.REGDB_E_CLASSNOTREG);
PresentationFramework (6)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
269
throw new
COMException
(xmlException.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (4)
440
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS);
444
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
581
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS);
585
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
src\Framework\System\Windows\Standard\ErrorCodes.cs (1)
486
e = new
COMException
(message, (int)_value);
System (1)
compmod\system\componentmodel\LicenseManager.cs (1)
412
throw new
COMException
(lexp.Message, CLASS_E_NOTLICENSED);
System.Data (3)
fx\src\data\System\Data\OleDb\DBPropSet.cs (1)
110
lastErrorFromProvider = new
COMException
(message, (int)lastErrorHr);
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
296
throw new
COMException
(message, (int)hr);
450
throw new
COMException
(message, (int)hr);
System.ServiceModel (3)
System\ServiceModel\ComIntegration\TearOffProxy.cs (2)
45
return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
COMException
(e.GetBaseException().Message, Marshal.GetHRForException(e.GetBaseException()))), msg);
61
return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
COMException
(returnMsg.Exception.GetBaseException().Message, Marshal.GetHRForException(returnMsg.Exception.GetBaseException()))), msg);
System\ServiceModel\ComIntegration\TransactionProxy.cs (1)
268
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
COMException
(null, HR.CONTEXT_E_NOTRANSACTION));
System.Web.Mobile (8)
UI\MobileControls\Design\Util\MSHTMLHost.cs (8)
131
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
180
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
236
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
240
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
244
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
254
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
258
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
262
throw new
COMException
(String.Empty, NativeMethods.E_NOTIMPL);
WindowsBase (1)
Base\MS\Internal\Interop\ErrorCodes.cs (1)
455
e = new
COMException
(message ?? e.Message, (int)_value);
212 references to COMException
ComSvcConfig (6)
ComAdminWrapper.cs (2)
170
catch (
COMException
ex)
226
catch (
COMException
e)
Tool.cs (1)
893
catch (
COMException
)
WasAdminWrapper.cs (3)
91
catch (
COMException
ex)
133
catch (
COMException
ex)
178
catch (
COMException
ex)
mscorlib (3)
system\runtime\interopservices\marshal.cs (1)
1626
catch(
COMException
)
system\runtime\remoting\redirectionproxy.cs (2)
129
COMException
comException = replyMsg.Exception as
COMException
;
PresentationFramework (18)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
433
catch (
COMException
e)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
203
if (!(ex is InvalidComObjectException || ex is
COMException
|| ex is InvalidOperationException) ||
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (3)
189
catch (
COMException
)
301
catch(
COMException
)
400
catch (
COMException
)
src\Framework\MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
126
catch (
COMException
comException)
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (1)
94
catch (
COMException
ex)
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
2885
catch ( System.Runtime.InteropServices.
COMException
)
2943
catch ( System.Runtime.InteropServices.
COMException
)
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1256
catch (
COMException
ce)
src\Framework\System\Windows\Data\ObjectDataProvider.cs (1)
470
catch (System.Runtime.InteropServices.
COMException
ce)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
777
catch (
COMException
)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
260
catch (
COMException
ex) when(ex.HResult == NativeMethods.E_UNEXPECTED)
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
72
when (ex is InvalidCastException || ex is
COMException
)
src\Framework\System\Windows\FrameworkCompatibilityPreferences.cs (1)
389
/// a corresponding <see cref="System.Runtime.InteropServices.
COMException
"/> (which is a type of
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
1137
catch (
COMException
)
1148
catch (
COMException
e)
src\Framework\System\Windows\Standard\ErrorCodes.cs (1)
478
if (e.GetType() == typeof(
COMException
))
System (1)
net\System\URI.cs (1)
285
catch (
COMException
ex){
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1055
catch (
COMException
err)
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1055
catch (
COMException
err)
System.IO.Log (9)
System\IO\Log\Error.cs (1)
355
public static Exception ConvertKnownException(
COMException
comException)
System\IO\Log\SimpleFileLog.cs (8)
50
catch (
COMException
exception)
82
catch (
COMException
exception)
105
catch (
COMException
exception)
127
catch (
COMException
exception)
152
catch (
COMException
exception)
192
catch (
COMException
exception)
235
catch (
COMException
exception)
277
catch (
COMException
exception)
System.Management (20)
managementbaseobject.cs (2)
511
catch (
COMException
e)
753
catch (System.Runtime.InteropServices.
COMException
)
managementexception.cs (4)
662
else if (e is
COMException
)
663
errorCode = (ManagementStatus)((
COMException
)e).ErrorCode;
734
if (e is
COMException
)
738
msg = GetMessage ((ManagementStatus)((
COMException
)e).ErrorCode);
managementobjectcollection.cs (2)
318
catch (
COMException
e)
633
catch (
COMException
e)
managementobjectsearcher.cs (2)
371
catch (
COMException
e)
465
catch (
COMException
e)
managementpath.cs (4)
373
catch (
COMException
e)
545
catch (
COMException
)
860
catch (
COMException
)
940
catch (
COMException
)
managementscope.cs (1)
1155
catch (
COMException
e)
method.cs (1)
123
catch (
COMException
e)
methodset.cs (4)
98
catch (
COMException
e)
272
catch (
COMException
e)
367
catch (
COMException
e)
434
catch (
COMException
e)
System.ServiceModel (1)
System\ServiceModel\ComIntegration\CatalogUtil.cs (1)
175
catch (
COMException
comException)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
299
catch (
COMException
)
System.ServiceModel.WasHosting (3)
System\ServiceModel\WasHosting\BaseAppDomainProtocolHandler.cs (1)
56
catch (
COMException
exception)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
211
catch (
COMException
e)
543
catch (
COMException
e)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
291
catch (
COMException
e)
System.Transactions (38)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
77
catch (
COMException
ex )
System\Transactions\Oletx\OletxEnlistment.cs (12)
414
catch (
COMException
comException )
435
catch (
COMException
comException )
448
catch (
COMException
ex )
508
catch (
COMException
ex )
593
catch (
COMException
ex )
714
catch (
COMException
ex )
944
catch (
COMException
ex )
1069
catch (
COMException
ex )
1190
catch (
COMException
ex )
1254
catch (
COMException
ex )
1330
catch (
COMException
ex )
1411
catch (
COMException
ex )
System\Transactions\Oletx\OletxResourceManager.cs (7)
115
catch (
COMException
ex )
137
COMException
comEx = ex.InnerException as
COMException
;
199
catch (
COMException
ex )
387
catch (
COMException
comException)
518
catch (
COMException
ex )
807
catch (
COMException
ex ) // or whatever exception gets thrown if we get a bad hr.
System\Transactions\Oletx\OleTxTransaction.cs (4)
974
catch (
COMException
comException)
1164
catch (
COMException
comException)
1225
catch (
COMException
comException)
1314
catch (
COMException
comException)
System\Transactions\Oletx\OletxTransactionManager.cs (2)
641
catch (
COMException
ex )
836
COMException
comException
System\Transactions\Oletx\OletxVolatileEnlistment.cs (4)
286
catch (
COMException
ex )
515
catch (
COMException
ex )
733
catch (
COMException
ex )
866
catch (
COMException
ex )
System\Transactions\TransactionInterop.cs (7)
135
catch (
COMException
comException)
254
catch (
COMException
comException )
351
catch (
COMException
comException)
488
catch (
COMException
comException )
549
catch (
COMException
comException )
607
catch (
COMException
ex )
664
catch (
COMException
comException )
System\Transactions\TransactionScope.cs (1)
1269
catch (
COMException
e )
System.Web (32)
Configuration\RemoteWebConfigurationHost.cs (1)
484
} catch (
COMException
ex) {
Security\ADMembershipProvider.cs (29)
852
catch (
COMException
e1)
940
catch (
COMException
)
954
if (tie.InnerException is
COMException
)
956
COMException
ce = (
COMException
) tie.InnerException;
1334
catch (
COMException
e2)
1343
if (tie.InnerException is
COMException
)
1345
COMException
ce = (
COMException
) tie.InnerException;
1485
if (tie.InnerException is
COMException
)
1487
COMException
ce = (
COMException
) tie.InnerException;
2113
catch (
COMException
e)
3027
catch (
COMException
e)
3233
if (!((e.InnerException is
COMException
) && (((
COMException
)e.InnerException).ErrorCode == unchecked((int) 0x8000500d))))
3251
catch (
COMException
e)
3280
if (!((e.InnerException is
COMException
) && (((
COMException
)e.InnerException).ErrorCode == unchecked((int) 0x8000500d))))
3298
catch (
COMException
e)
3332
catch (
COMException
e)
3508
catch (
COMException
e)
3521
catch (
COMException
e)
3578
catch (
COMException
ce)
3622
catch (
COMException
ce)
3646
catch (
COMException
e)
3718
catch (
COMException
ce)
3743
catch (
COMException
ce)
4211
catch (
COMException
e)
Security\AuthStoreRoleProvider.cs (2)
240
COMException
ce = (e.InnerException as
COMException
);
System.Windows.Forms (60)
winforms\Managed\System\WinForms\AccessibleObject.cs (30)
117
catch (
COMException
e) {
137
catch (
COMException
e) {
160
catch (
COMException
e) {
189
catch (
COMException
e) {
210
catch (
COMException
e) {
232
catch (
COMException
e) {
246
catch (
COMException
e) {
315
catch (
COMException
e) {
330
catch (
COMException
e) {
417
catch (
COMException
e) {
442
catch (
COMException
e) {
479
catch (
COMException
e) {
513
catch (
COMException
e) {
1289
catch (
COMException
e) {
1324
catch (
COMException
e) {
1401
catch (
COMException
e) {
1453
catch (
COMException
e) {
1498
catch (
COMException
e) {
1520
catch (
COMException
e) {
1629
catch (
COMException
e) {
1669
catch (
COMException
e) {
1715
catch (
COMException
e) {
1753
catch (
COMException
e) {
1790
catch (
COMException
e) {
1832
catch (
COMException
e) {
1968
catch (
COMException
e) {
2043
catch (
COMException
e) {
2123
catch (
COMException
e) {
2270
catch (
COMException
e) {
2294
catch (
COMException
e) {
winforms\Managed\System\WinForms\AxHost.cs (14)
94
private static
COMException
E_NOTIMPL = new COMException(SR.GetString(SR.AXNotImplemented), unchecked((int)0x80000001));
95
private static
COMException
E_INVALIDARG = new COMException(SR.GetString(SR.AXInvalidArgument), unchecked((int)0x80070057));
96
private static
COMException
E_FAIL = new COMException(SR.GetString(SR.AXUnknownError), unchecked((int)0x80004005));
97
private static
COMException
E_NOINTERFACE = new COMException(SR.GetString(SR.AxInterfaceNotSupported), unchecked((int)0x80004002));
1513
catch (
COMException
) {
1521
catch (
COMException
e) {
2307
catch (
COMException
) {
2485
catch (
COMException
t) {
2494
catch (
COMException
t) {
2545
catch (
COMException
e) {
4814
catch (
COMException
) {
4836
catch (
COMException
) {
6038
catch (
COMException
t) {
7087
catch (
COMException
) {
winforms\Managed\System\WinForms\Control.cs (1)
17266
catch (
COMException
e) {
winforms\Managed\System\WinForms\Cursor.cs (1)
658
catch (
COMException
e) {
winforms\Managed\System\WinForms\HtmlElement.cs (6)
214
catch (
COMException
ex)
241
catch (
COMException
ex)
339
catch (
COMException
ex)
366
catch (
COMException
ex)
542
catch (
COMException
ex)
694
catch (
COMException
comException)
winforms\Managed\System\WinForms\HtmlWindowCollection.cs (1)
72
catch (
COMException
) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
1261
catch (
COMException
) {}
winforms\Managed\System\WinForms\WebBrowser.cs (3)
381
catch (
COMException
) {
408
catch (
COMException
) {
1584
catch (
COMException
ce) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
1159
catch (
COMException
) {
1167
catch (
COMException
e) {
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
112
catch (
COMException
t) {
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\Accessible.cs (2)
1377
COMException
comException = e as
COMException
;
WindowsBase (7)
Base\MS\Internal\Interop\ErrorCodes.cs (1)
437
if (e.GetType() == typeof(
COMException
))
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (1)
823
catch(
COMException
e )
Base\System\IO\Packaging\EncryptedPackage.cs (4)
524
COMException
comException = ex.InnerException as
COMException
;
582
COMException
comException = ex.InnerException as
COMException
;
Shared\MS\Win32\SafeNativeMethodsCLR.cs (1)
580
/// <exception cref="
COMException
">
WsatConfig (4)
Configuration\FirewallWrapper.cs (2)
35
catch (
COMException
)
81
catch (
COMException
e)
Configuration\MsdtcWrapper.cs (1)
144
catch (
COMException
e)
Configuration\StdRegProviderWrapper.cs (1)
104
catch (
COMException
e) // for RPC_S_SERVER_UNAVAILABLE sort of errors
WsatUI (4)
Configuration\FirewallWrapper.cs (2)
35
catch (
COMException
)
81
catch (
COMException
e)
Configuration\MsdtcWrapper.cs (1)
144
catch (
COMException
e)
Configuration\StdRegProviderWrapper.cs (1)
104
catch (
COMException
e) // for RPC_S_SERVER_UNAVAILABLE sort of errors