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