Base:
property
IsInvalid
System.Runtime.InteropServices.SafeHandle.IsInvalid
3 overrides of IsInvalid
System.IO.MemoryMappedFiles (1)
artifacts\obj\System.IO.MemoryMappedFiles\Debug\net10.0\System.IO.MemoryMappedFiles.notsupported.cs (1)
12public override bool IsInvalid { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } }
System.IO.Pipes (1)
artifacts\obj\System.IO.Pipes\Debug\net10.0\System.IO.Pipes.notsupported.cs (1)
13public override bool IsInvalid { get { throw new System.PlatformNotSupportedException(System.SR.Pipes_PlatformNotSupported); } }
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
155public override bool IsInvalid
92 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)
1252if (!handle.IsInvalid) 1333if (hProcess.IsInvalid) 1422if (!hProcess.IsInvalid) 1459if (childHandle.IsInvalid)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\NativeTypes.vb (1)
43Debug.Assert(IsInvalid, "Safe handle should only be set once.")
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)
248Debug.Assert(renderTargetBitmap != null && !renderTargetBitmap.IsInvalid); 254Debug.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)
2786if (iconInfo.hbmColor.IsInvalid)
System\Windows\Standard\NativeMethods.cs (5)
1430if (dc.IsInvalid) 1461if (dc.IsInvalid) 1482if (dc.IsInvalid) 1593if (!this.IsInvalid) 2394if (hBitmap.IsInvalid)
ReachFramework (1)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
35if (handle != null && !handle.IsInvalid)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Windows.cs (2)
33if (handle.IsInvalid) 86if (handle.IsInvalid)
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (2)
37if (handle.IsInvalid) 94if (myHandle.IsInvalid)
src\System\Threading\Mutex.CoreCLR.Unix.cs (6)
26if (handle.IsInvalid) 51if (mutexHandle.IsInvalid) 88if (myHandle.IsInvalid) 142errorDetails = mutexHandle.IsInvalid ? GetErrorDetails(systemCallErrors) : null; 150errorCode = mutexHandle.IsInvalid ? Marshal.GetLastPInvokeError() : Interop.Errors.ERROR_SUCCESS; 151errorDetails = mutexHandle.IsInvalid ? GetErrorDetails(systemCallErrors) : null;
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 :