73 references to SetHandleAsInvalid
mscorlib (6)
microsoft\win32\registrykey.cs (1)
1688this.hkey.SetHandleAsInvalid();
system\console.cs (1)
491sh.SetHandleAsInvalid();
system\threading\eventwaithandle.cs (2)
83_handle.SetHandleAsInvalid(); 145_handle.SetHandleAsInvalid();
system\threading\mutex.cs (1)
192mutexHandle.SetHandleAsInvalid();
system\threading\waithandle.cs (1)
112safeWaitHandle.SetHandleAsInvalid();
SMDiagnostics (1)
System\ServiceModel\Diagnostics\Utility.cs (1)
39handle.SetHandleAsInvalid();
System (24)
net\System\Net\_SafeNetHandles.cs (20)
494pkgArray.SetHandleAsInvalid(); 569refHandle.SetHandleAsInvalid(); 667result.SetHandleAsInvalid(); 718result.SetHandleAsInvalid(); 802result.SetHandleAsInvalid(); 1143outCredential.SetHandleAsInvalid(); 1197outCredential.SetHandleAsInvalid(); 1236outCredential.SetHandleAsInvalid(); 1307outCredential.SetHandleAsInvalid(); 1747handleTemplate.SetHandleAsInvalid(); 2061handleTemplate.SetHandleAsInvalid(); 2453target.SetHandleAsInvalid(); 2480target.SetHandleAsInvalid(); 2720result.SetHandleAsInvalid(); 2729result.SetHandleAsInvalid(); 2738result.SetHandleAsInvalid(); 2832result.SetHandleAsInvalid(); 2925refHandle.SetHandleAsInvalid(); 3004handle.SetHandleAsInvalid(); 3103SetHandleAsInvalid();
net\System\Net\NetWebProxyFinder.cs (1)
510autoProxyUrl.SetHandleAsInvalid();
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
1595fileMappingHandle.SetHandleAsInvalid();
sys\system\io\ports\SerialStream.cs (2)
1572_handle.SetHandleAsInvalid(); 1621_handle.SetHandleAsInvalid();
System.Core (7)
System\IO\LogStream.cs (2)
291_handle.SetHandleAsInvalid(); 317_handle.SetHandleAsInvalid();
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
493handle.SetHandleAsInvalid();
System\IO\Pipes\PipeStream.cs (1)
1162m_handle.SetHandleAsInvalid();
System\Security\Cryptography\NCryptNative.cs (1)
1010key.SetHandleAsInvalid();
System\Security\Cryptography\X509Certificates\X509Native.cs (2)
90privateKey?.SetHandleAsInvalid(); 103privateKey.SetHandleAsInvalid();
System.IdentityModel (7)
System\IdentityModel\SspiSafeHandles.cs (7)
435handleTemplate.SetHandleAsInvalid(); 703handleTemplate.SetHandleAsInvalid(); 1010outCredential.SetHandleAsInvalid(); 1046outCredential.SetHandleAsInvalid(); 1091outCredential.SetHandleAsInvalid(); 1132outCredential.SetHandleAsInvalid(); 1325refHandle.SetHandleAsInvalid();
System.Net (11)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (7)
38SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 62SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 86SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 110SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 136SetHandleAsInvalid(); 146SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 168SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self
net\PeerToPeer\UnsafePeerToPeerMethods.cs (3)
195SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 216SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self 236SetHandleAsInvalid(); //Mark it closed - This does not change the value of the handle it self
net\UnsafeMethods.cs (1)
121result.SetHandleAsInvalid();
System.ServiceModel (15)
System\ServiceModel\Activation\SharedMemory.cs (3)
45fileMapping.SetHandleAsInvalid(); 89handle.SetHandleAsInvalid(); 124fileMapping.SetHandleAsInvalid();
System\ServiceModel\Activation\Utility.cs (4)
41process.SetHandleAsInvalid(); 54process.SetHandleAsInvalid(); 107scManager.SetHandleAsInvalid(); 120service.SetHandleAsInvalid();
System\ServiceModel\Channels\PipeConnection.cs (7)
643targetProcessHandle.SetHandleAsInvalid(); 1815pipeHandle.SetHandleAsInvalid(); 2088pipeHandle.SetHandleAsInvalid(); 2564fileMapping.SetHandleAsInvalid(); 2614fileMapping.SetHandleAsInvalid(); 2622fileMapping.SetHandleAsInvalid(); 2732handle.SetHandleAsInvalid();
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (1)
62monikerSupportLibrary.SetHandleAsInvalid();
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedImpersonationContext.cs (1)
68handle.SetHandleAsInvalid();
System.ServiceModel.Internals (1)
System\Runtime\IOThreadTimer.cs (1)
636handle.SetHandleAsInvalid();