6 overrides of ErrorCode
Microsoft.AspNetCore.Server.HttpSys (1)
HttpSysException.cs (1)
34public override int ErrorCode
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.Manual.notsupported.cs (1)
35public override int ErrorCode { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } }
System.Net.HttpListener (1)
System\Net\HttpListenerException.cs (1)
39public override int ErrorCode => NativeErrorCode;
System.Net.NetworkInformation (1)
artifacts\obj\System.Net.NetworkInformation\Debug\net10.0\System.Net.NetworkInformation.notsupported.cs (1)
419public override int ErrorCode { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetNetworkInformation_PlatformNotSupported); } }
System.Net.Primitives (1)
artifacts\obj\System.Net.Primitives\Debug\net10.0\System.Net.Primitives.notsupported.cs (1)
534public override int ErrorCode { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetPrimitives); } }
System.Net.WebSockets (1)
artifacts\obj\System.Net.WebSockets\Debug\net10.0\System.Net.WebSockets.notsupported.cs (1)
137public override int ErrorCode { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WebSockets); } }
25 references to ErrorCode
Microsoft.Build.Framework (1)
VisualStudioLocationHelper.cs (1)
94catch (COMException ex) when (ex.ErrorCode == REGDB_E_CLASSNOTREG)
Microsoft.CodeAnalysis.EditorFeatures (1)
StringCopyPaste\WpfStringCopyPasteService.cs (1)
53catch (ExternalException ex) when ((uint)ex.ErrorCode == CLIPBRD_E_CANT_OPEN)
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\SigningTestHelpers.cs (1)
74if (unchecked((uint)ex.ErrorCode) != 0x8009000F)
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (3)
194If cex.ErrorCode = DISP_E_UNKNOWNNAME Then 197ElseIf cex.ErrorCode = (SEVERITY_ERROR Or FACILITY_CONTROL Or 438) Then 203CType(ex.InnerException, COMException).ErrorCode = DISP_E_NOTACOLLECTION) Then
Microsoft\VisualBasic\Interaction.vb (1)
530If e.ErrorCode = &H800706BA Then '&H800706BA = The RPC Server is unavailable
Microsoft.VisualStudio.LanguageServices (2)
InlineRename\InlineRenameUndoManager.cs (1)
110catch (COMException ex) when (ex.ErrorCode == VSConstants.E_UNEXPECTED && FatalError.ReportAndCatch(ex))
Snippets\SnippetExpansionClient.cs (1)
1030hr = ex.ErrorCode;
PresentationFramework (2)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
87if (ex.ErrorCode == (int)FilterErrorCode.FILTER_E_END_OF_CHUNKS)
System\Windows\Controls\WebBrowser.cs (1)
905if ((uint)unchecked(ce.ErrorCode) != (uint)unchecked(0x800704c7))
ReachFramework (1)
PrintConfig\FallbackPTProvider.cs (1)
73throw new PrintQueueException(win32Exception.ErrorCode, "PrintConfig.Provider.BindFail", deviceName, win32Exception);
System.Runtime.Caching (1)
System\Runtime\Caching\Dbg.cs (1)
28e is ExternalException ee ? "Exception " + e + Environment.NewLine + "_hr=0x" + ee.ErrorCode.ToString("x", CultureInfo.InvariantCulture) :
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2311if (e.ErrorCode == unchecked((int)0x80040112))
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1086errorCode = e is ExternalException ee ? (HRESULT)ee.ErrorCode : HRESULT.E_FAIL;
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
416Debug.Fail($"ProcessFunctions failed with hr={ex.ErrorCode}, message={ex}"); 426Debug.Fail($"ProcessVariables failed with hr={ex.ErrorCode}, message={ex}");
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (6)
222if (ex.ErrorCode == unchecked((int)0x800a0258)) 251if (ex.ErrorCode == unchecked((int)0x800a0258)) 351if (ex.ErrorCode == unchecked((int)0x800a0258)) 380if (ex.ErrorCode == unchecked((int)0x800a0258)) 528if (ex.ErrorCode == unchecked((int)0x800a083e)) 669if (comException.ErrorCode == unchecked((int)0x80020009))
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1322if ((uint)unchecked(ce.ErrorCode) != unchecked(0x800704c7))
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\Accessible.cs (1)
1321int errorCode = comException.ErrorCode;