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