15 references to SetHandleAsInvalid
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
1592_hkey.SetHandleAsInvalid();
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\SharedPerformanceCounter.cs (1)
1724_fileMappingHandle.SetHandleAsInvalid();
System.Diagnostics.Process (1)
System\Diagnostics\Process.Unix.cs (1)
406handle.SetHandleAsInvalid();
System.Net.Security (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
343dupCertHandle.SetHandleAsInvalid(); // ownership has been transferred to sslHandle; do not free via this safe handle
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
61dupCertHandle.SetHandleAsInvalid(); // ownership has been transferred to sslHandle; do not free via this safe handle
System.Net.Sockets (1)
System\Net\Sockets\SafeSocketHandle.cs (1)
179SetHandleAsInvalid();
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
61_waitHandle.SetHandleAsInvalid();
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (4)
170privateKey?.SetHandleAsInvalid(); 182privateKey.SetHandleAsInvalid(); 195privateKey.SetHandleAsInvalid(); 323handle.SetHandleAsInvalid();
System\Security\Cryptography\CngKey.Delete.cs (1)
23_keyHandle.SetHandleAsInvalid();
System.Security.Cryptography.Pkcs (1)
Microsoft\Win32\SafeHandles\SafeHeapAllocHandle.cs (1)
20result.SetHandleAsInvalid();
System.Threading.AccessControl (2)
System\Threading\EventWaitHandleAcl.cs (1)
61handle.SetHandleAsInvalid();
System\Threading\MutexAcl.cs (1)
47handle.SetHandleAsInvalid();