Base:
property
IsInvalid
Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid.IsInvalid
14 references to IsInvalid
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
545bool useFd = socket is not null && !socket.IsInvalid;
System.Net.Sockets (13)
System\Net\Sockets\SafeSocketHandle.cs (2)
99bool shouldClose = !IsInvalid && TryOwnClose(); 177if (IsInvalid)
System\Net\Sockets\Socket.cs (10)
89Debug.Assert(_handle.IsInvalid); 95Debug.Assert(!_handle.IsInvalid); 247if (handle.IsInvalid) 1082Debug.Assert(acceptedSocketHandle.IsInvalid); 1093Debug.Assert(!acceptedSocketHandle.IsInvalid); 3536if (Disposed || _handle.IsInvalid) 3593if (silent && (Disposed || _handle.IsInvalid)) 3606if (silent && _handle.IsInvalid) 3772Debug.Assert(fd != null && !fd.IsInvalid); 3920if (disconnectOnFailure && _isConnected && (_handle.IsInvalid || (errorCode != SocketError.WouldBlock &&
System\Net\Sockets\SocketPal.Unix.cs (1)
97if (socket.IsInvalid)