77 overrides of IsInvalid
Infrastructure.Common (1)
SafeKeychainHandle.cs (1)
46public override bool IsInvalid => handle == IntPtr.Zero;
NuGet.Packaging (2)
Signing\Cms\NativeMethods.cs (2)
135public override bool IsInvalid => handle == IntPtr.Zero; 160public override bool IsInvalid { get { return 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.Data.OleDb (5)
DbPropSet.cs (1)
121public override bool IsInvalid
PropertyInfoSet.cs (1)
49public override bool IsInvalid
SafeHandles.cs (1)
55public override bool IsInvalid
System\Data\ProviderBase\DbBuffer.cs (1)
42public override bool IsInvalid
System\Data\ProviderBase\WrappedIUnknown.cs (1)
35public override bool IsInvalid
System.Diagnostics.EventLog (3)
System\Diagnostics\Reader\CoTaskMemSafeHandle.cs (1)
28public override bool IsInvalid
System\Diagnostics\Reader\CoTaskMemUnicodeSafeHandle.cs (1)
34public override bool IsInvalid
System\Diagnostics\Reader\EventLogHandle.cs (1)
25public override bool IsInvalid
System.DirectoryServices (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeTokenHandle.cs (1)
27public override bool IsInvalid
System.DirectoryServices.AccountManagement (2)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeTokenHandle.cs (1)
27public override bool IsInvalid
System\DirectoryServices\AccountManagement\AuthZSet.cs (1)
532public override bool IsInvalid
System.Drawing.Common (1)
System\Drawing\Printing\PrintController.SafeDeviceModeHandle.cs (1)
30public override bool IsInvalid => handle == 0;
System.IO.Compression (5)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeZstdHandle.cs (4)
84public override bool IsInvalid => handle == IntPtr.Zero; 159public override bool IsInvalid => handle == IntPtr.Zero; 175public override bool IsInvalid => handle == IntPtr.Zero; 191public override bool IsInvalid => handle == IntPtr.Zero;
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
247public override bool IsInvalid
System.IO.Compression.Brotli (2)
src\runtime\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.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeFindHandle.Windows.cs (1)
18public override bool IsInvalid
System.Net.Quic (11)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
78public override bool IsInvalid
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
91public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
23public override bool IsInvalid 43public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
38public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
32public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
42public override bool IsInvalid 62public override bool IsInvalid 82public override bool IsInvalid
src\runtime\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\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
101public override bool IsInvalid
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
78public override bool IsInvalid
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
91public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
23public override bool IsInvalid 43public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (3)
50public override bool IsInvalid 138public override bool IsInvalid 163public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
38public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
32public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
42public override bool IsInvalid 62public override bool IsInvalid 82public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (1)
24public override bool IsInvalid
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
247public override bool IsInvalid
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs (1)
16public override bool IsInvalid => handle == new IntPtr(-1);
src\runtime\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.AccessControl (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeTokenHandle.cs (1)
27public override bool IsInvalid
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs (1)
19public sealed override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs (1)
19public sealed override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs (1)
44public sealed override bool IsInvalid
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
29public override bool IsInvalid => handle == IntPtr.Zero;
System\Security\Cryptography\OpenSsl.NotSupported.cs (1)
291public override bool IsInvalid => true;
System.Security.Cryptography.Pkcs (3)
Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs (1)
24public sealed override bool IsInvalid
Microsoft\Win32\SafeHandles\SafeCryptMsgHandle.cs (1)
17public sealed override bool IsInvalid
Microsoft\Win32\SafeHandles\SafeProvOrNCryptKeyHandle.cs (1)
26public sealed override bool IsInvalid
System.Security.Principal.Windows (2)
Microsoft\Win32\SafeHandles\SafeAccessTokenHandle.cs (1)
31public override bool IsInvalid
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeLsaHandle.cs (1)
23public sealed override bool IsInvalid
System.ServiceProcess.ServiceController (1)
Microsoft\Win32\SafeHandles\SafeServiceHandle.cs (1)
23public override bool IsInvalid
System.Speech (1)
Internal\HGlobalSafeHandle.cs (1)
59public override bool IsInvalid
System.Windows.Extensions (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs (1)
19public sealed override bool IsInvalid
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
45 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 ) 172if (_cursorHandle == null || _cursorHandle.IsInvalid) 247if (_cursorHandle == null || _cursorHandle.IsInvalid) 293if (_cursorHandle == null || _cursorHandle.IsInvalid)
System.Console (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
474if (handle.IsInvalid)
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
System.Net.Quic (7)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
93if (handle == null || handle.IsInvalid)
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
System.Net.Security (7)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
93if (handle == null || handle.IsInvalid)
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (1)
38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
System.Private.CoreLib (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
97if (handle.IsInvalid)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
232!IsInvalid;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs (1)
22if (handle.IsClosed || handle.IsInvalid)
System.Security.AccessControl (2)
System\Security\AccessControl\Win32.cs (2)
125if (handle.IsInvalid) 282if (handle.IsInvalid)
System.Security.Cryptography (6)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (1)
80if (parentHandle.IsClosed || parentHandle.IsInvalid)
src\runtime\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.");
System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs (2)
44if (!applicationPolicyOids.IsInvalid) 54if (!certificatePolicyOids.IsInvalid)
System.Security.Cryptography.Pkcs (4)
Microsoft\Win32\SafeHandles\SafeProvOrNCryptKeyHandleUwp.cs (1)
21Debug.Assert(parentHandle != null && !parentHandle.IsClosed && !parentHandle.IsInvalid);
src\runtime\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.");
System.Windows.Extensions (3)
src\runtime\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.");