6 overrides of ErrorCode
Microsoft.AspNetCore.Server.HttpSys (1)
HttpSysException.cs (1)
34public override int ErrorCode
System.Data.OleDb (1)
OleDbException.cs (1)
51public override int ErrorCode
System.Net.HttpListener (1)
System\Net\HttpListenerException.cs (1)
39public override int ErrorCode => NativeErrorCode;
System.Net.NetworkInformation (1)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\NetworkInformationException.cs (1)
59public override int ErrorCode
System.Net.Primitives (1)
System\Net\SocketException.cs (1)
62public override int ErrorCode => base.NativeErrorCode;
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketException.cs (1)
113public override int ErrorCode
157 references to 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)
902if ((uint)unchecked(ce.ErrorCode) != (uint)unchecked(0x800704c7))
ReachFramework (1)
PrintConfig\FallbackPTProvider.cs (1)
73throw new PrintQueueException(win32Exception.ErrorCode, "PrintConfig.Provider.BindFail", deviceName, win32Exception);
System.Data.OleDb (1)
OleDbException.cs (1)
55return base.ErrorCode;
System.DirectoryServices (64)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (1)
81if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (1)
142int errorCode = e.ErrorCode;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (6)
108if (e.ErrorCode == unchecked((int)0x80005000)) 596if (e.ErrorCode == unchecked((int)0x8000500D)) 695if (e.ErrorCode == unchecked((int)0x8000500D)) 771if (e.ErrorCode == unchecked((int)0x8000500D)) 856if (e.ErrorCode == unchecked((int)0x8000500D)) 1210if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (2)
161if (e.ErrorCode == unchecked((int)0x80005000)) 1263if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (8)
108if (e.ErrorCode == unchecked((int)0x80072030)) 382if (e.ErrorCode == unchecked((int)0x80072030)) 695if (e.ErrorCode == unchecked((int)0x80072030)) 737if (exception.ErrorCode != unchecked((int)0x8007200A)) 756if (IsADAM && (exception.ErrorCode == unchecked((int)0x8007202F))) 760if (exception.ErrorCode != unchecked((int)0x8007200A)) 777if (exception.ErrorCode != unchecked((int)0x8007200A)) 1395if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (2)
85if (e.ErrorCode == unchecked((int)0x80072030)) 174if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (2)
72if (e.ErrorCode == unchecked((int)0x80072030)) 162if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (1)
93if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (1)
149int errorCode = e.ErrorCode;
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (3)
140int errorCode = e.ErrorCode; 244if (e.ErrorCode == unchecked((int)0x80072030)) 578if (e.ErrorCode == unchecked((int)0x80072029))
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (5)
121int errorCode = e.ErrorCode; 553if ((e.ErrorCode == unchecked((int)0x8007203a)) || 554(e.ErrorCode == unchecked((int)0x8007200e)) || 555(e.ErrorCode == unchecked((int)0x8007200f)) || 556(e.ErrorCode == unchecked((int)0x800705b4)))
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (3)
356if ((e.ErrorCode == unchecked((int)0x80070035)) || (e.ErrorCode == unchecked((int)0x80070033)) || (e.ErrorCode == unchecked((int)0x80005000)))
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (4)
363if (e.ErrorCode == unchecked((int)0x80072020) || // dir_error on server side 364e.ErrorCode == unchecked((int)0x80072030)) // object not exists 366else if (e.ErrorCode == unchecked((int)0x80005000) || // bad path name 367e.ErrorCode == unchecked((int)0x80072032)) // ERROR_DS_INVALID_DN_SYNTAX
System\DirectoryServices\ActiveDirectory\Domain.cs (3)
114int errorCode = e.ErrorCode; 233if (e.ErrorCode == unchecked((int)0x8007200A)) 388if (e.ErrorCode == unchecked((int)0x8007200A))
System\DirectoryServices\ActiveDirectory\DomainController.cs (3)
159int errorCode = e.ErrorCode; 900if (e.ErrorCode == unchecked((int)0x8007203a)) 936if (e.ErrorCode == unchecked((int)0x8007203a))
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
302int errorCode = e.ErrorCode;
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
140int errorCode = e.ErrorCode; 192if (e.ErrorCode == unchecked((int)0x8007200A))
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (3)
74int errorCode = e.ErrorCode; 284if (e.ErrorCode == unchecked((int)0x8007203a)) 320if (e.ErrorCode == unchecked((int)0x8007203a))
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (2)
67if (e.ErrorCode == unchecked((int)0x80072030)) 172if (e.ErrorCode == unchecked((int)0x80072030))
System\DirectoryServices\ActiveDirectory\Utils.cs (2)
925if (e.ErrorCode == unchecked((int)0x80072030)) 1711if (e.ErrorCode == unchecked((int)0x80072030) && siteName != null)
System\DirectoryServices\DirectoryEntry.cs (4)
724if (e.ErrorCode == unchecked((int)0x80072030) || 725e.ErrorCode == unchecked((int)0x80070003) || // ERROR_DS_NO_SUCH_OBJECT and path not found (not found in strict sense) 726e.ErrorCode == unchecked((int)0x800708AC)) // Group name could not be found 1127if (e.ErrorCode == unchecked((int)0x8000500D)) // property not found exception
System\DirectoryServices\DirectoryEntryConfiguration.cs (1)
112if (e.ErrorCode == unchecked((int)0x80005008))
System\DirectoryServices\DirectoryServicesCOMException.cs (1)
28internal DirectoryServicesCOMException(string? extendedMessage, int extendedError, COMException e) : base(e.Message, e.ErrorCode)
System\DirectoryServices\PropertyCollection.cs (1)
228hr = e.ErrorCode;
System\DirectoryServices\PropertyValueCollection.cs (2)
88if (e.ErrorCode != unchecked((int)0x80004005) || (value == null)) 238if (e.ErrorCode != unchecked((int)0x8007200A)) // ERROR_DS_NO_ATTRIBUTE_OR_VALUE
System.DirectoryServices.AccountManagement (17)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (2)
142if (((uint)e.ErrorCode) == ((uint)0x80005000)) // E_ADS_BAD_PATHNAME 153e.ErrorCode,
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (2)
2550if (((uint)e.ErrorCode) == ((uint)0x80005000)) // E_ADS_BAD_PATHNAME 2561e.ErrorCode,
System\DirectoryServices\AccountManagement\AD\RangeRetriever.cs (2)
172if (e.ErrorCode == unchecked((int)0x80072020)) 180GlobalDebug.WriteLineIf(GlobalDebug.Error, "RangeRetriever", "GetNextChunk: caught COMException, ErrorCode={0}", e.ErrorCode);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (2)
322if (((System.Runtime.InteropServices.COMException)e.InnerException).ErrorCode == unchecked((int)ExceptionHelper.ERROR_HRESULT_CONSTRAINT_VIOLATION)) 356if (((System.Runtime.InteropServices.COMException)e.InnerException).ErrorCode == unchecked((int)ExceptionHelper.ERROR_HRESULT_CONSTRAINT_VIOLATION))
System\DirectoryServices\AccountManagement\Context.cs (1)
129if (e.ErrorCode == unchecked((int)(ExceptionHelper.ERROR_HRESULT_LOGON_FAILURE)))
System\DirectoryServices\AccountManagement\exceptions.cs (1)
257int errorCode = e.ErrorCode;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (6)
583e.ErrorCode); 586if ((e.ErrorCode == unchecked((int)0x800708AB)) || // unknown user 587(e.ErrorCode == unchecked((int)0x800708AC)) || // unknown group 588(e.ErrorCode == unchecked((int)0x80070035)) || // bad net path 589(e.ErrorCode == unchecked((int)0x800708AD))) 1140e.ErrorCode);
System\DirectoryServices\AccountManagement\SAM\SAMUtils.cs (1)
46if (e.ErrorCode == unchecked((int)0x80070035)) // ERROR_BAD_NETPATH
System.Management (2)
System\Management\ManagementException.cs (2)
663errorCode = (ManagementStatus)((COMException)e).ErrorCode; 744msg = GetMessage((ManagementStatus)((COMException)e).ErrorCode);
System.Speech (10)
Recognition\RecognizerBase.cs (9)
457if (!_supportsSapi53 && (SAPIErrorCodes)e.ErrorCode == SAPIErrorCodes.SPERR_NOT_FOUND) 569throw ExceptionFromSapiStreamError((SAPIErrorCodes)comException.ErrorCode); 869return ExceptionFromSapiCreateRecognizerError((SAPIErrorCodes)e.ErrorCode); 1457switch ((SAPIErrorCodes)e.ErrorCode) 1466ThrowIfSapiErrorCode((SAPIErrorCodes)e.ErrorCode); 1605switch ((SAPIErrorCodes)e.ErrorCode) 1629ThrowIfSapiErrorCode((SAPIErrorCodes)e.ErrorCode); 1633ThrowIfSapiErrorCode((SAPIErrorCodes)e.ErrorCode); 2056exception = ExceptionFromSapiStreamError((SAPIErrorCodes)comException.ErrorCode);
Result\RecognitionResult.cs (1)
130if (ex.ErrorCode == (int)SAPIErrorCodes.SPERR_NOT_SUPPORTED_FOR_INPROC_RECOGNIZER)
System.Transactions.Local (47)
System\Transactions\DtcProxyShim\OletxHelper.cs (1)
44catch (COMException e) when (e.ErrorCode == XACT_E_ALREADYINPROGRESS)
System\Transactions\DtcProxyShim\Phase0Shim.cs (1)
33catch (COMException e) when (e.ErrorCode == OletxHelper.XACT_E_PROTOCOL)
System\Transactions\DtcProxyShim\ResourceManagerShim.cs (1)
52catch (COMException e) when (e.ErrorCode == OletxHelper.XACT_E_REENLISTTIMEOUT)
System\Transactions\Oletx\DtcTransactionManager.cs (1)
58if (ex.ErrorCode == OletxHelper.XACT_E_NOTSUPPORTED)
System\Transactions\Oletx\OletxEnlistment.cs (15)
419if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 420ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 498if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 499ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 921if ((ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) && etwLog.IsEnabled()) 932else if (ex.ErrorCode == OletxHelper.XACT_E_PROTOCOL) 1002if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 1003ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 1057if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 1058ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 1115(ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) && etwLog.IsEnabled()) 1165(ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) && etwLog.IsEnabled())
System\Transactions\Oletx\OletxResourceManager.cs (10)
94if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 95ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 116if (comEx.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 117comEx.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 177if (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 178ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 191else if (ex.ErrorCode != OletxHelper.XACT_E_RECOVERYALREADYDONE) 317if (comException.ErrorCode == OletxHelper.XACT_E_TOOMANY_ENLISTMENTS) 394catch (COMException ex) when (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN) 641catch (COMException ex) when (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN)
System\Transactions\Oletx\OletxTransaction.cs (4)
981if (comException.ErrorCode == OletxHelper.XACT_E_ABORTED || 982comException.ErrorCode == OletxHelper.XACT_E_INDOUBT) 992else if (comException.ErrorCode == OletxHelper.XACT_E_ALREADYINPROGRESS) 1060if (comException.ErrorCode == OletxHelper.XACT_E_ALREADYINPROGRESS)
System\Transactions\Oletx\OletxTransactionManager.cs (6)
602if (comException.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || 603comException.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 609if (comException.ErrorCode == OletxHelper.XACT_E_NETWORK_TX_DISABLED) 616if (comException.ErrorCode >= OletxHelper.XACT_E_FIRST && 617comException.ErrorCode <= OletxHelper.XACT_E_LAST) 621OletxHelper.XACT_E_NOTRANSACTION == comException.ErrorCode
System\Transactions\Oletx\OletxVolatileEnlistment.cs (7)
262if ((ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) && etwLog.IsEnabled()) 274else if (OletxHelper.XACT_E_PROTOCOL == ex.ErrorCode) 661catch (COMException ex) when (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE) 755catch (COMException ex) when (ex.ErrorCode == OletxHelper.XACT_E_CONNECTION_DOWN || ex.ErrorCode == OletxHelper.XACT_E_TMNOTAVAILABLE)
System\Transactions\TransactionInterop.cs (1)
350catch (COMException ex) when (ex.ErrorCode == OletxHelper.XACT_E_NOTRANSACTION)
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2308if (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)) 529if (ex.ErrorCode == unchecked((int)0x800a083e)) 670if (comException.ErrorCode == unchecked((int)0x80020009))
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1337if ((uint)unchecked(ce.ErrorCode) != unchecked(0x800704c7))
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1571Debug.Fail($"{nameof(RepaintSplitterRect)} failed with hr={ex.ErrorCode}, message={ex}");
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\Accessible.cs (1)
1321int errorCode = comException.ErrorCode;