Base:
property
ErrorCode
System.Runtime.InteropServices.ExternalException.ErrorCode
40 references to ErrorCode
System (5)
net\System\Net\_Connection.cs (1)
3374if (socketException.ErrorCode == (int) SocketError.TimedOut)
net\System\Net\_ConnectStream.cs (1)
2357return ex.ErrorCode;
net\System\Net\FtpWebRequest.cs (1)
1132if (sEx.ErrorCode == (int)SocketError.TimedOut) {
net\System\Net\Sockets\Socket.cs (2)
194if(e.ErrorCode == (int)SocketError.InvalidArgument){ 2117if(socketException.ErrorCode != (int)SocketError.MessageSize){
System.ServiceModel (34)
System\ServiceModel\Channels\SocketConnection.cs (34)
719if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 732if (socketException.ErrorCode == UnsafeNativeMethods.WSAECONNABORTED && 751if (socketException.ErrorCode == UnsafeNativeMethods.WSAENETRESET || 752socketException.ErrorCode == UnsafeNativeMethods.WSAECONNABORTED || 753socketException.ErrorCode == UnsafeNativeMethods.WSAECONNRESET) 777else if (socketException.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT) 790return new CommunicationObjectAbortedException(SR.GetString(SR.TcpTransferError, socketException.ErrorCode, socketException.Message), originalException); 794CommunicationException communicationException = new CommunicationException(SR.GetString(SR.TcpTransferError, socketException.ErrorCode, socketException.Message), originalException); 844? SR.GetString(SR.TcpTransferErrorWithIP, socketException.ErrorCode, socketException.Message, localEndpoint, remoteEndpoint) 845: SR.GetString(SR.TcpTransferError, socketException.ErrorCode, socketException.Message); 1583if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 1588if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRNOTAVAIL || 1589socketException.ErrorCode == UnsafeNativeMethods.WSAECONNREFUSED || 1590socketException.ErrorCode == UnsafeNativeMethods.WSAENETDOWN || 1591socketException.ErrorCode == UnsafeNativeMethods.WSAENETUNREACH || 1592socketException.ErrorCode == UnsafeNativeMethods.WSAEHOSTDOWN || 1593socketException.ErrorCode == UnsafeNativeMethods.WSAEHOSTUNREACH || 1594socketException.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT) 1598return new EndpointNotFoundException(SR.GetString(SR.TcpConnectError, remoteUri.AbsoluteUri, socketException.ErrorCode, socketException.Message), innerException); 1602return new EndpointNotFoundException(SR.GetString(SR.TcpConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, socketException.ErrorCode, socketException.Message, timeSpent), innerException); 1605else if (socketException.ErrorCode == UnsafeNativeMethods.WSAENOBUFS) 1609else if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_NOT_ENOUGH_MEMORY || 1610socketException.ErrorCode == UnsafeNativeMethods.ERROR_NO_SYSTEM_RESOURCES || 1611socketException.ErrorCode == UnsafeNativeMethods.ERROR_OUTOFMEMORY) 1619return new CommunicationException(SR.GetString(SR.TcpConnectError, remoteUri.AbsoluteUri, socketException.ErrorCode, socketException.Message), innerException); 1623return new CommunicationException(SR.GetString(SR.TcpConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, socketException.ErrorCode, socketException.Message, timeSpent), innerException); 2120if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRINUSE) 2143if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 2147if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRINUSE) 2154SR.GetString(SR.TcpListenError, socketException.ErrorCode, socketException.Message, localEndpoint.ToString()), 2286(exception.ErrorCode == UnsafeNativeMethods.WSAECONNRESET) || 2287(exception.ErrorCode == UnsafeNativeMethods.WSAEMFILE) || 2288(exception.ErrorCode == UnsafeNativeMethods.WSAENOBUFS) || 2289(exception.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT)
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpSocket.cs (1)
223if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE)