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