22 overrides of IsInvalid
Infrastructure.Common (1)
SafeKeychainHandle.cs (1)
46public override bool IsInvalid => handle == IntPtr.Zero;
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\SafeNativeOverlapped.cs (1)
29public override bool IsInvalid
Microsoft.AspNetCore.Server.IIS (1)
Core\NativeSafeHandle.cs (1)
13public override bool IsInvalid => handle == IntPtr.Zero;
Microsoft.CodeAnalysis.Workspaces (3)
Storage\SQLite\Interop\SafeSqliteBlobHandle.cs (1)
36public override bool IsInvalid => handle == IntPtr.Zero;
Storage\SQLite\Interop\SafeSqliteHandle.cs (1)
33public override bool IsInvalid => handle == IntPtr.Zero;
Storage\SQLite\Interop\SafeSqliteStatementHandle.cs (1)
36public override bool IsInvalid => handle == IntPtr.Zero;
PresentationCore (2)
MS\Win32\UnsafeNativeMethodsTablet.cs (2)
80public override bool IsInvalid 115public override bool IsInvalid
ReachFramework (2)
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (1)
20public override bool IsInvalid
PrintConfig\PTProvider.cs (1)
50public override bool IsInvalid
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
41public override bool IsInvalid
System\Data\Odbc\OdbcHandle.cs (1)
126public override bool IsInvalid
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs (1)
16public override bool IsInvalid => handle == new IntPtr(-1);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs (1)
16public override bool IsInvalid => handle == IntPtr.Zero || handle == new IntPtr(-1);
System.Security.Cryptography (1)
artifacts\obj\System.Security.Cryptography\Debug\net10.0\System.Security.Cryptography.notsupported.cs (1)
2743public override bool IsInvalid { get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
14public override bool IsInvalid { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } }
System.Windows.Forms.Primitives (1)
Microsoft\Win32\SafeHandles\CoTaskMemSafeHandle.cs (1)
14public override bool IsInvalid => IsClosed || handle == IntPtr.Zero;
UIAutomationClient (5)
MS\Internal\Automation\SafeHandles.cs (3)
26public override bool IsInvalid 49public override bool IsInvalid 69public override bool IsInvalid
System\Windows\Automation\Condition.cs (1)
21public override bool IsInvalid
System\Windows\Automation\Text\TextRange.cs (1)
27public override bool IsInvalid
12 references to IsInvalid
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
32Assert(safeHandle != null && !safeHandle.IsInvalid, "Safe handle is invalid.");
PresentationCore (4)
System\Windows\Input\Cursor.cs (4)
93if (! cursorHandle.IsInvalid ) 175if (_cursorHandle == null || _cursorHandle.IsInvalid) 250if (_cursorHandle == null || _cursorHandle.IsInvalid) 296if (_cursorHandle == null || _cursorHandle.IsInvalid)
System.Formats.Tar (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.Private.CoreLib (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
239!IsInvalid;
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (1)
78if (handle.IsClosed || handle.IsInvalid)