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