5 overrides of ErrorCode
System (4)
net\System\Net\HttpListenerException.cs (1)
38
public override int
ErrorCode
net\System\Net\NetworkInformation\NetworkInformationException.cs (1)
48
public override int
ErrorCode
{
net\System\Net\SocketException.cs (1)
67
public override int
ErrorCode
{
net\System\Net\WebSockets\WebSocketException.cs (1)
138
public override int
ErrorCode
System.Data (1)
fx\src\data\System\Data\OleDb\OleDbException.cs (1)
59
override public int
ErrorCode
{
157 references to ErrorCode
ComSvcConfig (6)
ComAdminWrapper.cs (3)
172
ToolConsole.WriteWarning(SR.GetString(SR.FailedToFetchApplicationInformationFromCatalog, appidOrName, ex.
ErrorCode
, ex.Message));
230
else if (e.
ErrorCode
== HR.COMADMIN_E_OBJECT_DOES_NOT_EXIST)
233
ToolConsole.WriteWarning(SR.GetString(SR.CouldnotGetPartitionForApplication, appId, e.
ErrorCode
, e.Message));
WasAdminWrapper.cs (3)
95
ex.
ErrorCode
, ex.Message));
137
webServer, ex.
ErrorCode
, ex.Message));
182
webServer, webDirectory, ex.
ErrorCode
, ex.Message));
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
435
if (e.
ErrorCode
!= RPC_E_CALL_REJECTED)
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (1)
97
if (ex.
ErrorCode
== (int)FilterErrorCode.FILTER_E_END_OF_CHUNKS)
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1263
if ((uint)unchecked(ce.
ErrorCode
) != (uint)unchecked(0x800704c7))
System (1)
net\System\URI.cs (1)
286
if (ex.
ErrorCode
== E_FAIL){ // E_FAIL
System.Data (1)
fx\src\data\System\Data\OleDb\OleDbException.cs (1)
61
return base.
ErrorCode
;
System.IO.Log (1)
System\IO\Log\Error.cs (1)
357
uint errorCode = GetErrorCodeFromHR(comException.
ErrorCode
);
System.Management (2)
managementexception.cs (2)
663
errorCode = (ManagementStatus)((COMException)e).
ErrorCode
;
738
msg = GetMessage ((ManagementStatus)((COMException)e).
ErrorCode
);
System.ServiceModel (16)
System\ServiceModel\Administration\WbemProvider.cs (13)
142
wbemSink.SetStatus(e.
ErrorCode
, 0);
143
return e.
ErrorCode
;
242
e.
ErrorCode
, null, null);
243
return e.
ErrorCode
;
363
e.
ErrorCode
, null, null);
364
return e.
ErrorCode
;
423
e.
ErrorCode
, null, null);
424
return e.
ErrorCode
;
479
e.
ErrorCode
, null, null);
485
return e.
ErrorCode
;
546
e.
ErrorCode
, null, null);
547
return e.
ErrorCode
;
637
result = e.
ErrorCode
;
System\ServiceModel\Channels\MsmqQueue.cs (1)
796
OnCompletion(ex.
ErrorCode
, synchronously);
System\ServiceModel\ComIntegration\CatalogUtil.cs (1)
177
if (comException.
ErrorCode
!= HR.COMADMIN_E_PARTITIONS_DISABLED)
System\ServiceModel\MsmqException.cs (1)
71
switch (this.
ErrorCode
)
System.Transactions (46)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
79
if ( NativeMethods.XACT_E_NOTSUPPORTED == ex.
ErrorCode
)
System\Transactions\Oletx\OletxEnlistment.cs (15)
513
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
514
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
598
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
599
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
1074
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
1075
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
1091
else if ( NativeMethods.XACT_E_PROTOCOL == ex.
ErrorCode
)
1194
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
1195
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
1258
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
1259
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
1334
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
1335
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
1415
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
1416
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
System\Transactions\Oletx\OletxResourceManager.cs (11)
117
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
118
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
141
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == comEx.
ErrorCode
) ||
142
( NativeMethods.XACT_E_TMNOTAVAILABLE == comEx.
ErrorCode
)
202
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
203
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
216
else if ( NativeMethods.XACT_E_RECOVERYALREADYDONE != ex.
ErrorCode
)
390
if ( NativeMethods.XACT_E_TOOMANY_ENLISTMENTS == comException.
ErrorCode
)
520
if ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
)
809
if ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
)
816
if ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
)
System\Transactions\Oletx\OleTxTransaction.cs (4)
1227
if ( ( NativeMethods.XACT_E_ABORTED == comException.
ErrorCode
) ||
1228
( NativeMethods.XACT_E_INDOUBT == comException.
ErrorCode
)
1239
else if ( NativeMethods.XACT_E_ALREADYINPROGRESS == comException.
ErrorCode
)
1320
if ( NativeMethods.XACT_E_ALREADYINPROGRESS == comException.
ErrorCode
)
System\Transactions\Oletx\OletxTransactionManager.cs (6)
839
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == comException.
ErrorCode
) ||
840
( NativeMethods.XACT_E_TMNOTAVAILABLE == comException.
ErrorCode
)
849
if (( NativeMethods.XACT_E_NETWORK_TX_DISABLED == comException.
ErrorCode
))
858
else if ( ( NativeMethods.XACT_E_FIRST <= comException.
ErrorCode
) &&
859
( NativeMethods.XACT_E_LAST >= comException.
ErrorCode
) )
862
if ( NativeMethods.XACT_E_NOTRANSACTION == comException.
ErrorCode
)
System\Transactions\Oletx\OletxVolatileEnlistment.cs (7)
288
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
289
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
305
else if ( NativeMethods.XACT_E_PROTOCOL == ex.
ErrorCode
)
735
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
736
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
868
if ( ( NativeMethods.XACT_E_CONNECTION_DOWN == ex.
ErrorCode
) ||
869
( NativeMethods.XACT_E_TMNOTAVAILABLE == ex.
ErrorCode
)
System\Transactions\TransactionInterop.cs (1)
609
if ( Oletx.NativeMethods.XACT_E_NOTRANSACTION != ex.
ErrorCode
)
System\Transactions\TransactionScope.cs (1)
1271
if ( System.Transactions.Oletx.NativeMethods.XACT_E_NOTRANSACTION == e.
ErrorCode
)
System.Web (27)
Configuration\RemoteWebConfigurationHost.cs (1)
485
if ((uint)ex.
ErrorCode
== 0x80040154)
ErrorFormatter.cs (2)
1032
if ((e is ExternalException) && ((ExternalException) e).
ErrorCode
!= 0)
1033
sb.Append(" (0x" + (((ExternalException)e).
ErrorCode
).ToString("x", CultureInfo.CurrentCulture) + ")");
Security\ADMembershipProvider.cs (22)
854
if ((e1.
ErrorCode
== unchecked((int) 0x80071392)) || (e1.
ErrorCode
== unchecked((int) 0x8007200d)))
859
else if ((e1.
ErrorCode
== unchecked((int) 0x8007001f)) && (e1 is DirectoryServicesCOMException))
957
int errorCode = ce.
ErrorCode
;
1336
if (e2.
ErrorCode
== unchecked((int) 0x8007052e))
1346
int errorCode = ce.
ErrorCode
;
1488
int errorCode = ce.
ErrorCode
;
2115
if (e.
ErrorCode
== unchecked((int) 0x80072030))
3030
if (e.
ErrorCode
== unchecked((int) 0x80005008))
3233
if (!((e.InnerException is COMException) && (((COMException)e.InnerException).
ErrorCode
== unchecked((int) 0x8000500d))))
3253
if (e.
ErrorCode
== unchecked((int) 0x80005000))
3280
if (!((e.InnerException is COMException) && (((COMException)e.InnerException).
ErrorCode
== unchecked((int) 0x8000500d))))
3300
if (e.
ErrorCode
== unchecked((int) 0x8000500D))
3334
if (e.
ErrorCode
== unchecked((int) 0x8000500D))
3510
if (e.
ErrorCode
== unchecked((int) 0x80005000))
3523
if (e.
ErrorCode
== unchecked((int) 0x80005000))
3581
if (ce.
ErrorCode
== unchecked((int) 0x8007052e))
3588
else if (ce.
ErrorCode
== unchecked((int) 0x8007203a))
3624
if (ce.
ErrorCode
== unchecked((int) 0x8007203a))
3720
if (ce.
ErrorCode
== unchecked((int) 0x80072030))
3745
if (ce.
ErrorCode
== unchecked((int) 0x80072030))
4213
if (e.
ErrorCode
== unchecked((int) 0x8000500D))
Security\AuthStoreRoleProvider.cs (1)
241
if (ce != null && (uint)ce.
ErrorCode
== 0x80070490) {
StaticFileHandler.cs (1)
588
if (IsSecurityError(e.
ErrorCode
)) {
System.Windows.Forms (50)
winforms\Managed\System\WinForms\AccessibleObject.cs (30)
118
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
140
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
161
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
190
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
211
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
233
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
247
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
316
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
331
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
418
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
443
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
480
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
514
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1292
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1325
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1402
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1454
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1499
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1523
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1632
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1670
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1716
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1754
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1791
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1833
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
1969
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
2044
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
2124
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
2271
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
2297
if (e.
ErrorCode
!= NativeMethods.DISP_E_MEMBERNOTFOUND) {
winforms\Managed\System\WinForms\AxHost.cs (4)
2546
if (e.
ErrorCode
== E_NOINTERFACE.
ErrorCode
) return null;
2597
if (e.
ErrorCode
== unchecked((int)0x80040112)) { // CLASS_E_NOTLICENSED
7234
hr = ex.
ErrorCode
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
122
hr = ex.
ErrorCode
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
81
Debug.Fail("Failed to show property frame: " + ex.
ErrorCode
.ToString(CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (3)
456
Debug.Fail("ProcessFunctions failed with hr=" + ex.
ErrorCode
.ToString(CultureInfo.InvariantCulture) + ", message=" + ex.ToString());
464
Debug.Fail("ProcessVariables failed with hr=" + ex.
ErrorCode
.ToString(CultureInfo.InvariantCulture) + ", message=" + ex.ToString());
496
hr = ex.
ErrorCode
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
224
hr = ex.
ErrorCode
;
winforms\Managed\System\WinForms\Control.cs (3)
15951
return ex.
ErrorCode
;
17267
if (e.
ErrorCode
== NativeMethods.STG_E_FILENOTFOUND) {
17383
errorCode = ((ExternalException) e).
ErrorCode
;
winforms\Managed\System\WinForms\HtmlElement.cs (6)
216
if (ex.
ErrorCode
== unchecked((int)0x800a0258))
243
if (ex.
ErrorCode
== unchecked((int)0x800a0258))
341
if (ex.
ErrorCode
== unchecked((int)0x800a0258))
368
if (ex.
ErrorCode
== unchecked((int)0x800a0258))
544
if (ex.
ErrorCode
== unchecked((int)0x800a083e))
696
if (comException.
ErrorCode
== unchecked((int)0x80020009))
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1585
if ((uint)unchecked(ce.
ErrorCode
) != (uint)unchecked(0x800704c7)) {
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\Accessible.cs (1)
1389
int errorCode = comException.
ErrorCode
;
WindowsBase (3)
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (1)
825
if( e.
ErrorCode
== SafeNativeCompoundFileConstants.STG_E_ACCESSDENIED )
Base\System\IO\Packaging\EncryptedPackage.cs (2)
525
if (comException != null && comException.
ErrorCode
== STG_E_FILEALREADYEXISTS)
583
if (comException != null && comException.
ErrorCode
== STG_E_FILEALREADYEXISTS)