74 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.Build (1)
InprocTrackingNativeMethods.cs (1)
287public override bool IsInvalid
Microsoft.Build.Utilities.Core (1)
InprocTrackingNativeMethods.cs (1)
287public override bool IsInvalid
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.IO.Compression (1)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
175public override bool IsInvalid
System.IO.Compression.Brotli (2)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBrotliHandle.cs (2)
19public override bool IsInvalid => handle == IntPtr.Zero; 32public override bool IsInvalid => handle == IntPtr.Zero;
System.Net.Quic (11)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
78public override bool IsInvalid
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
91public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
23public override bool IsInvalid 43public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
38public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
32public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
42public override bool IsInvalid 62public override bool IsInvalid 82public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (1)
24public override bool IsInvalid
System\Net\Quic\Internal\MsQuicSafeHandle.cs (1)
28public override bool IsInvalid => handle == IntPtr.Zero;
System.Net.Security (14)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
91public override bool IsInvalid
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
78public override bool IsInvalid
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
91public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
23public override bool IsInvalid 43public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (3)
50public override bool IsInvalid 138public override bool IsInvalid 163public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
38public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
32public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
42public override bool IsInvalid 62public override bool IsInvalid 82public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (1)
24public override bool IsInvalid
System.Net.WebSockets (1)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
175public 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 (22)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
78public override bool IsInvalid
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
91public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
23public override bool IsInvalid 43public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs (1)
29public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
38public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs (1)
25public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs (1)
25public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs (1)
24public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpKdfHandle.Unix.cs (1)
23public override bool IsInvalid => handle == 0;
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpMacCtxHandle.Unix.cs (1)
22public override bool IsInvalid => handle == 0;
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpMacHandle.Unix.cs (1)
22public override bool IsInvalid => handle == 0;
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs (1)
23public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs (1)
23public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
32public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs (1)
23public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
42public override bool IsInvalid 62public override bool IsInvalid 82public override bool IsInvalid
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (1)
24public override bool IsInvalid
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
29public override bool IsInvalid => handle == IntPtr.Zero;
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (1)
55public override bool IsInvalid
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
43 references to IsInvalid
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
32Assert(safeHandle != null && !safeHandle.IsInvalid, "Safe handle is invalid.");
Microsoft.Build (1)
InprocTrackingNativeMethods.cs (1)
252ErrorUtilities.VerifyThrow(!s_fileTrackerDllHandle.IsInvalid, "Handle for FileTracker.dll should not be invalid");
Microsoft.Build.Utilities.Core (1)
InprocTrackingNativeMethods.cs (1)
252ErrorUtilities.VerifyThrow(!s_fileTrackerDllHandle.IsInvalid, "Handle for FileTracker.dll should not be 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.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.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.DriveInfo (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.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.Pipes (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.Net.Quic (7)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
92if (handle == null || handle.IsInvalid)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (2)
44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid); 51Debug.Assert(parent != null && !parent.IsInvalid, "Expected new parent to be non-null and valid");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (3)
20/// instance represents an invalid handle: <see cref="System.Runtime.InteropServices.SafeHandle.IsInvalid"/> returns <see language="true"/>. 41Debug.Assert(currentHandle.IsInvalid); 53Debug.Assert(!isCachedInvalidHandle || handle.IsInvalid, "The cached invalid handle must still be invalid.");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
System.Net.Security (7)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
92if (handle == null || handle.IsInvalid)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (2)
44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid); 51Debug.Assert(parent != null && !parent.IsInvalid, "Expected new parent to be non-null and valid");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (3)
20/// instance represents an invalid handle: <see cref="System.Runtime.InteropServices.SafeHandle.IsInvalid"/> returns <see language="true"/>. 41Debug.Assert(currentHandle.IsInvalid); 53Debug.Assert(!isCachedInvalidHandle || handle.IsInvalid, "The cached invalid handle must still be invalid.");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
38return handle == IntPtr.Zero || (_parent != null && _parent.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)
System.Security.Cryptography (11)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
92if (handle == null || handle.IsInvalid)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (2)
44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid); 51Debug.Assert(parent != null && !parent.IsInvalid, "Expected new parent to be non-null and valid");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (3)
20/// instance represents an invalid handle: <see cref="System.Runtime.InteropServices.SafeHandle.IsInvalid"/> returns <see language="true"/>. 41Debug.Assert(currentHandle.IsInvalid); 53Debug.Assert(!isCachedInvalidHandle || handle.IsInvalid, "The cached invalid handle must still be invalid.");
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
System\Security\Cryptography\DSAOpenSsl.cs (1)
31/// <paramref name="pkeyHandle"/> <see cref="Runtime.InteropServices.SafeHandle.IsInvalid" />
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
18/// <exception cref="ArgumentException"><paramref name="pkeyHandle"/> <see cref="SafeHandle.IsInvalid" /></exception>
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
18/// <exception cref="ArgumentException"><paramref name="pkeyHandle"/> <see cref="SafeHandle.IsInvalid" /></exception>
System\Security\Cryptography\RSAOpenSsl.cs (1)
60/// <paramref name="pkeyHandle"/> <see cref="Runtime.InteropServices.SafeHandle.IsInvalid" />