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) 1084Debug.Assert(acceptedSocketHandle.IsInvalid); 1095Debug.Assert(!acceptedSocketHandle.IsInvalid); 3569if (Disposed || _handle.IsInvalid) 3626if (silent && (Disposed || _handle.IsInvalid)) 3639if (silent && _handle.IsInvalid) 3805Debug.Assert(fd != null && !fd.IsInvalid); 3953if (disconnectOnFailure && _isConnected && (_handle.IsInvalid || (errorCode != SocketError.WouldBlock &&
System\Net\Sockets\SocketPal.Unix.cs (1)
97if (socket.IsInvalid)