50 references to COMException
Microsoft.Build.Framework (1)
VisualStudioLocationHelper.cs (1)
102
throw new
COMException
("Failed to get query", result);
PresentationFramework (48)
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (2)
129
throw new
COMException
(SR.FilterGetTextNotSupported,
143
throw new
COMException
(SR.FilterGetValueAlreadyCalledOnCurrentChunk,
MS\Internal\IO\Packaging\EncryptedPackageFilter.cs (1)
82
throw new
COMException
(SR.FilterGetTextNotSupported,
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
273
throw new
COMException
(SR.FilterEndOfChunks,
MS\Internal\IO\Packaging\PackageFilter.cs (4)
120
throw new
COMException
(SR.FilterEndOfChunks,
213
throw new
COMException
(SR.FilterEndOfChunks,
226
throw new
COMException
(SR.FilterGetTextNotSupported,
241
throw new
COMException
(SR.FilterGetValueNotSupported,
MS\Internal\IO\Packaging\XamlFilter.cs (2)
219
throw new
COMException
(SR.FilterGetChunkNoStream, (int)FilterErrorCode.FILTER_E_ACCESS);
242
throw new
COMException
(xmlException.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
MS\Internal\IO\Packaging\XpsFilter.cs (13)
54
throw new
COMException
(SR.FileToFilterNotLoaded,
61
throw new
COMException
(SR.FilterInitInvalidAttributes,
76
throw new
COMException
(SR.FileToFilterNotLoaded,
104
throw new
COMException
(SR.FileToFilterNotLoaded,
151
throw new
COMException
(SR.AuxiliaryFilterReturnedAnomalousCountOfCharacters,
190
throw new
COMException
(SR.AuxiliaryFilterReturnedAnomalousCountOfCharacters,
275
throw new
COMException
(SR.FileToFilterNotLoaded,
423
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS);
427
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
459
throw new
COMException
(SR.FilterIPersistFileIsReadOnly, NativeMethods.STG_E_CANTSAVE);
552
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS);
556
throw new
COMException
(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
579
throw new
COMException
(SR.FilterIPersistStreamIsReadOnly, NativeMethods.STG_E_CANTSAVE);
System\Windows\Documents\InputScopeAttribute.cs (3)
60
throw new
COMException
(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY);
88
throw new
COMException
(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY);
107
throw new
COMException
(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY);
System\Windows\Documents\TextStore.cs (21)
78
throw new
COMException
(SR.TextStore_CONNECT_E_CANNOTCONNECT, unchecked((int)0x80040202));
84
throw new
COMException
(SR.TextStore_E_NOINTERFACE, unchecked((int)0x80004002));
106
throw new
COMException
(SR.TextStore_CONNECT_E_NOCONNECTION, unchecked((int)0x80040200));
474
throw new
COMException
(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY);
495
throw new
COMException
(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
506
throw new
COMException
(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
545
throw new
COMException
(SR.TextStore_E_NOTIMPL, unchecked((int)0x80004001));
606
throw new
COMException
(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY);
636
throw new
COMException
(SR.TextStore_TS_E_FORMAT, UnsafeNativeMethods.TS_E_FORMAT);
657
throw new
COMException
(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY);
707
throw new
COMException
(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
802
throw new
COMException
(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY);
838
throw new
COMException
(SR.TextStore_TS_E_FORMAT, UnsafeNativeMethods.TS_E_FORMAT);
883
throw new
COMException
(SR.TextStore_E_NOTIMPL, unchecked((int)0x80004001));
957
throw new
COMException
(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT);
965
throw new
COMException
(SR.TextStore_TS_E_INVALIDPOINT, UnsafeNativeMethods.TS_E_INVALIDPOINT);
1037
throw new
COMException
(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT);
1052
throw new
COMException
(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT);
1505
throw new
COMException
(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
2597
throw new
COMException
(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT);
3423
throw new
COMException
(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
System\Windows\Standard\ErrorCodes.cs (1)
433
e = new
COMException
(message, (int)_value);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
36
private static readonly COMException s_invalidArgumentException =
new
(SR.AXInvalidArgument, unchecked((int)0x80070057));