Base:
property
IsInvalid
System.Runtime.InteropServices.SafeHandle.IsInvalid
5 overrides of IsInvalid
System.IO.MemoryMappedFiles (1)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
89public override bool IsInvalid => (long)handle <= 0;
System.IO.Pipes (1)
Microsoft\Win32\SafeHandles\SafePipeHandle.Unix.cs (1)
69public override bool IsInvalid
System.Net.Security (2)
src\libraries\Common\src\System\Net\Security\Unix\SafeDeleteContext.cs (1)
24public override bool IsInvalid
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
59public override bool IsInvalid => handle == IntPtr.Zero;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
155public override bool IsInvalid
100 references to IsInvalid
Microsoft.AspNetCore.Cryptography.Internal (2)
SafeHandles\SafeLibraryHandle.cs (2)
70if (numCharsOutput != 0 && messageHandle != null && !messageHandle.IsInvalid) 114if (handle == null || handle.IsInvalid)
Microsoft.AspNetCore.DataProtection (1)
Cng\DpapiSecretSerializerHelper.cs (1)
352if (unprotectedDataHandle != null && !unprotectedDataHandle.IsInvalid)
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\SafeLibraryHandle.cs (1)
59if (handle == null || handle.IsInvalid)
Microsoft.Build.Framework (4)
NativeMethods.cs (4)
1279if (!handle.IsInvalid) 1360if (hProcess.IsInvalid) 1449if (!hProcess.IsInvalid) 1486if (childHandle.IsInvalid)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\NativeMethods.cs (1)
129if (handle.IsInvalid)
PresentationCore (30)
MS\Internal\FontCache\FontCacheUtil.cs (1)
852if (_viewHandle.IsInvalid)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
409if (eventHandle.IsInvalid || eventHandle.IsClosed) 472if (_eventHandle != null && !_eventHandle.IsInvalid && !_eventHandle.IsClosed)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
768Invariant.Assert(pBitmapSource != null && !pBitmapSource.IsInvalid); 786Invariant.Assert(pMedia != null && !pMedia.IsInvalid);
System\Windows\Media\ColorContextHelper.cs (1)
101return _profileHandle == null || _profileHandle.IsInvalid;
System\Windows\Media\ColorTransform.cs (2)
57if (srcContext.ProfileHandle != null && !srcContext.ProfileHandle.IsInvalid) 60if (dstContext.ProfileHandle != null && !dstContext.ProfileHandle.IsInvalid)
System\Windows\Media\ColorTransformHelper.cs (4)
57if (sourceProfile == null || sourceProfile.IsInvalid) 62if (destinationProfile == null || destinationProfile.IsInvalid) 98if (_transformHandle == null || _transformHandle.IsInvalid) 108if (_transformHandle == null || _transformHandle.IsInvalid)
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
162Debug.Assert(metadataHandle != null && !metadataHandle.IsInvalid);
System\Windows\Media\Imaging\BitmapPalette.cs (5)
151Debug.Assert(bitmapSource != null && !bitmapSource.IsInvalid); 214if (_palette == null || _palette.IsInvalid) 253Debug.Assert(palette != null && !palette.IsInvalid); 266Debug.Assert(_palette != null && !_palette.IsInvalid); 295Debug.Assert(_palette != null && !_palette.IsInvalid);
System\Windows\Media\Imaging\BitmapSource.cs (3)
568if (_wicSource == null || _wicSource.IsInvalid) 750if (_convertedDUCEPtr != null && !_convertedDUCEPtr.IsInvalid) 1754if ((palette == null) || (palette.InternalPalette == null) || palette.InternalPalette.IsInvalid)
System\Windows\Media\Imaging\InteropBitmapSource.cs (3)
46Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid); 77Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid); 124Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid);
System\Windows\Media\Imaging\PropVariant.cs (1)
404if (metadataHandle == null || metadataHandle.IsInvalid)
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
244Debug.Assert(renderTargetBitmap != null && !renderTargetBitmap.IsInvalid); 250Debug.Assert(bitmapSource != null && !bitmapSource.IsInvalid);
System\Windows\Media\MediaPlayerState.cs (3)
790if (_nativeMedia != null && !_nativeMedia.IsInvalid) 957Debug.Assert(_nativeMedia != null && !_nativeMedia.IsInvalid); 964if (_nativeMedia == null || _nativeMedia.IsInvalid)
PresentationFramework (9)
MS\Internal\AppModel\IconHelper.cs (2)
227if (colorBitmap.IsInvalid || bits == IntPtr.Zero) 242if (maskBitmap.IsInvalid)
MS\Internal\Ink\PenCursorManager.cs (1)
228if ( finalCursor.IsInvalid )
System\Windows\Controls\Primitives\Popup.cs (1)
2780if (iconInfo.hbmColor.IsInvalid)
System\Windows\Standard\NativeMethods.cs (5)
1432if (dc.IsInvalid) 1463if (dc.IsInvalid) 1484if (dc.IsInvalid) 1595if (!this.IsInvalid) 2396if (hBitmap.IsInvalid)
ReachFramework (1)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
35if (handle != null && !handle.IsInvalid)
System.DirectoryServices.Protocols (5)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
1161if (_needDispose && _ldapHandle != null && !_ldapHandle.IsInvalid)
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
33Debug.Assert(!_ldapHandle.IsInvalid);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (3)
936if (con != null && con._ldapHandle != null && !con._ldapHandle.IsInvalid) 1116if (ldapConnection != null && ldapConnection._ldapHandle != null && !ldapConnection._ldapHandle.IsInvalid) 1126if (ldapConnection != null && ldapConnection._ldapHandle != null && !ldapConnection._ldapHandle.IsInvalid)
System.Net.Security (6)
src\libraries\Common\src\System\Net\Security\SafeCredentialReference.cs (1)
20if (target.IsInvalid || target.IsClosed)
System\Net\Security\SslSessionsCache.cs (4)
127if (credentials == null || credentials.IsClosed || credentials.IsInvalid || credentials.Expiry < DateTime.UtcNow) 162if (creds.IsInvalid) 173if (credentials == null || credentials.IsClosed || credentials.IsInvalid || credentials.Expiry < utcNow) 178if (credentials == null || credentials.IsClosed || credentials.IsInvalid || credentials.Expiry < utcNow)
System\Net\Security\SslStream.Protocol.cs (1)
977if (!cachedCreds && _securityContext != null && !_securityContext.IsInvalid && _credentialsHandle != null && !_credentialsHandle.IsInvalid)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Unix.cs (1)
94if (waitHandle.IsInvalid)
src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (1)
73if (waitHandle.IsInvalid)
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (1)
52if (waitHandle.IsInvalid)
System.Security.Cryptography (4)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
95if (IsInvalid)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.Chain.cs (1)
85if (req.IsInvalid)
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (1)
118if (resp.IsInvalid)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
802if (resp == null || resp.IsInvalid)
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
306if (processHandle.IsInvalid)
UIAutomationClientSideProviders (29)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
54if (!_hTheme.IsInvalid)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
114if (ptr.IsInvalid)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (24)
71if (hProcess.IsInvalid) 81if (rmem.IsInvalid) 181if (hProcess.IsInvalid) 189if (rmem.IsInvalid) 218if (hProcess.IsInvalid) 227if (rmem.IsInvalid) 265if (hProcess.IsInvalid) 274if (rmem.IsInvalid) 312if (hProcess.IsInvalid) 321if (rmem1.IsInvalid) 329if (rmem2.IsInvalid) 363if (hProcess.IsInvalid) 371if (rmem.IsInvalid) 1164if (hProcess.IsInvalid) 1176if (remoteMem.IsInvalid) 1242if (hProcess.IsInvalid) 1251if (rmem.IsInvalid) 1359if (!copyTo.IsInvalid) 1363if (!hProcess.IsInvalid) 1407if (!copyTo.IsInvalid) 1411if (!hProcess.IsInvalid) 1455if (!copyTo.IsInvalid) 1459if (!hProcess.IsInvalid) 1480if (hProcess.IsInvalid)
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
30return !IsInvalid ? CloseThemeData(handle) == (IntPtr)NativeMethods.S_OK : true;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2586if (hProcess.IsInvalid)
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1586if (hProcess.IsInvalid)
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (2)
961if (hBitmap.IsInvalid) 976if (hIcon.IsInvalid)
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
381return screenDC.IsInvalid ? defaultPixelsPerInch :