Implemented interface member:
method
Dispose
System.IDisposable.Dispose()
273 references to Dispose
Infrastructure.Common (4)
SafeKeychainHandle.cs (4)
57keychain.Dispose(); 72keychain.Dispose(); 83keychain.Dispose(); 98handle.Dispose();
Microsoft.AspNetCore.Cryptography.Internal (1)
UnsafeNativeMethods.cs (1)
447newHandle.Dispose();
Microsoft.AspNetCore.DataProtection (4)
Cng\DpapiSecretSerializerHelper.cs (1)
355unprotectedDataHandle.Dispose();
Secret.cs (1)
116_localAllocHandle.Dispose();
SP800_108\Win7SP800_108_CTR_HMACSHA512Provider.cs (1)
77_hashHandle.Dispose();
SP800_108\Win8SP800_108_CTR_HMACSHA512Provider.cs (1)
70_keyHandle.Dispose();
Microsoft.AspNetCore.Server.HttpSys (5)
NativeInterop\RequestQueue.cs (1)
186Handle.Dispose();
RequestProcessing\ClientCertLoader.cs (2)
116_overlapped!.Dispose(); 321_overlapped.Dispose();
RequestProcessing\RequestStreamAsyncResult.cs (1)
152_overlapped?.Dispose();
RequestProcessing\ResponseStreamAsyncResult.cs (1)
335_overlapped?.Dispose();
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.cs (1)
890_requestNativeHandle.Dispose();
Core\IISNativeApplication.cs (1)
42_nativeApplication.Dispose();
Microsoft.Build.Framework (2)
NativeMethods.cs (2)
1364childProcessInfo.Value.Dispose(); 1485childHandle.Dispose();
Microsoft.CodeAnalysis.Workspaces (4)
Storage\SQLite\v2\Interop\SqlConnection.cs (3)
104handle.Dispose(); 148handle.Dispose(); 202handle.Dispose();
Storage\SQLite\v2\Interop\SqlStatement.cs (1)
32=> statement.Dispose();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\JobHandleWrapper.cs (1)
24_winJobHandle.Dispose();
Microsoft.ML.LightGbm (2)
WrappedLightGbmBooster.cs (1)
320Handle?.Dispose();
WrappedLightGbmDataset.cs (1)
106_handle?.Dispose();
Microsoft.ML.Transforms (1)
Text\LdaSingleBox.cs (1)
371_engine.Dispose();
MSBuildTaskHost (2)
NativeMethods.cs (2)
1364childProcessInfo.Value.Dispose(); 1485childHandle.Dispose();
PresentationCore (8)
MS\Internal\FontCache\FontCacheUtil.cs (2)
797_viewHandle?.Dispose(); 798_mappingHandle?.Dispose();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
267_hContext.Dispose();
System\Windows\Input\Cursor.cs (1)
121_cursorHandle.Dispose();
System\Windows\Media\ColorContext.cs (1)
112_colorContextHandle.Dispose();
System\Windows\Media\Imaging\BitmapMetadata.cs (1)
305pIMetadataReader?.Dispose();
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
315_pBackBufferLock.Dispose(); 627_pDoubleBufferedBitmap.Dispose();
PresentationFramework (11)
MS\Internal\AppModel\IconHelper.cs (2)
264colorBitmap.Dispose(); 270maskBitmap.Dispose();
System\Windows\Controls\Primitives\Popup.cs (2)
2847iconInfo.hbmColor.Dispose(); 2848iconInfo.hbmMask.Dispose();
System\Windows\Standard\NativeMethods.cs (3)
1432dc.Dispose(); 1463dc.Dispose(); 1542safeHandle.Dispose();
System\Windows\Window.cs (4)
4139_currentLargeIconHandle.Dispose(); 4144_currentSmallIconHandle.Dispose(); 6605hicon.Dispose(); 6817icon.Dispose();
ReachFramework (8)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
66this._compstuiHandle.Dispose();
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (1)
51handle?.Dispose();
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (1)
53handle.Dispose();
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
40this._devMode.Dispose();
PrintConfig\FallbackPTProvider.cs (2)
352_deviceHandle?.Dispose(); 661_deviceHandle.Dispose();
PrintConfig\PTProvider.cs (2)
515_providerHandle.Dispose(); 539_providerHandle.Dispose();
System.Console (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\ConsolePal.Unix.ConsoleStream.cs (1)
37_handle.Dispose();
System\TermInfo.DatabaseFactory.cs (1)
91fd.Dispose();
System.Data.Odbc (11)
System\Data\Odbc\OdbcCommand.cs (8)
690parameterBuffer?.Dispose(); 1046_dataReaderBuf.Dispose(); 1053buffer?.Dispose(); 1064handle.Dispose(); 1076handle.Dispose(); 1086handle.Dispose(); 1109handle.Dispose(); 1132handle.Dispose();
System\Data\Odbc\OdbcConnection.cs (1)
377connectionHandle.Dispose();
System\Data\Odbc\OdbcEnvironment.cs (1)
36((OdbcEnvironmentHandle)globalEnvironmentHandle).Dispose(); // internally refcounted so will happen correctly
System\Data\Odbc\OdbcEnvironmentHandle.cs (1)
41Dispose();
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
884_processHandle!.Dispose();
System.Formats.Tar (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System.IO.Compression (2)
System\IO\Compression\DeflateZLib\Deflater.cs (1)
80_zlibStream.Dispose();
System\IO\Compression\DeflateZLib\Inflater.cs (1)
209_zlibStream.Dispose();
System.IO.Compression.Brotli (2)
System\IO\Compression\dec\BrotliDecoder.cs (1)
35_state?.Dispose();
System\IO\Compression\enc\BrotliEncoder.cs (1)
60_state?.Dispose();
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System.IO.FileSystem.Watcher (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\FileSystemWatcher.Linux.cs (3)
40handle.Dispose(); 82handle.Dispose(); 793_inotifyHandle.Dispose();
System.IO.MemoryMappedFiles (12)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
79_fileStreamHandle.Dispose();
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
137fileHandle.Dispose(); 466_handle.Dispose(); 473_fileHandle?.Dispose(); 508fileHandle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (5)
200fd.Dispose(); 246fd.Dispose(); 283fd.Dispose(); 307fd.Dispose(); 332fileHandle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
50_viewHandle.Dispose();
System.IO.Pipes (12)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\Pipes\AnonymousPipeClientStream.cs (1)
40safePipeHandle.Dispose();
System\IO\Pipes\AnonymousPipeServerStream.cs (1)
117_clientHandle.Dispose();
System\IO\Pipes\AnonymousPipeServerStream.Unix.cs (4)
34serverHandle?.Dispose(); 35clientHandle?.Dispose(); 49serverHandle.Dispose(); 50clientHandle.Dispose();
System\IO\Pipes\NamedPipeClientStream.Unix.cs (2)
48clientHandle?.Dispose(); 71clientHandle.Dispose();
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
127serverHandle.Dispose(); 150InternalHandle!.Dispose();
System\IO\Pipes\PipeStream.cs (1)
158_handle.Dispose();
System.IO.Ports (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\Ports\SafeSerialDeviceHandle.Unix.cs (1)
26handle.Dispose();
System\IO\Ports\SerialStream.Unix.cs (2)
666tempHandle.Dispose(); 730_handle.Dispose();
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
162sh.Dispose();
System.Net.Quic (13)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
95handle?.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
153store.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (2)
46newStore.Dispose(); 53newStore.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\libraries\Common\src\System\Net\SafeHandleCache.cs (3)
92handle.Dispose(); 93handle.Dispose(); 142handle.Dispose();
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
305configurationHandle.Dispose();
System\Net\Quic\QuicConnection.cs (2)
851_handle.Dispose(); 853_configuration?.Dispose();
System\Net\Quic\QuicListener.cs (1)
426_handle.Dispose();
System\Net\Quic\QuicStream.cs (1)
750_handle.Dispose();
System.Net.Security (28)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
95handle?.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
306sslCtx.Dispose(); 397sslHandle.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (7)
322dupCertHandle.Dispose(); // we still own the safe handle; clean it up 423readBio.Dispose(); 424writeBio.Dispose(); 425handle.Dispose(); // will make IsInvalid==true if it's not already 467_readBio?.Dispose(); 468_writeBio?.Dispose(); 481SslContextHandle?.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
57dupCertHandle.Dispose(); // we still own the safe handle; clean it up
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
153store.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (2)
46newStore.Dispose(); 53newStore.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (3)
26retHandle.Dispose(); 43retHandle.Dispose(); 125retHandle.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\libraries\Common\src\System\Net\SafeHandleCache.cs (3)
92handle.Dispose(); 93handle.Dispose(); 142handle.Dispose();
System\Net\NegotiateAuthenticationPal.Unix.cs (4)
262_credentialsHandle?.Dispose(); 263_targetNameHandle?.Dispose(); 264_securityContext?.Dispose(); 628targetNameHandle?.Dispose();
System\Net\Security\SslStream.Protocol.cs (3)
170_securityContext?.Dispose(); 171_credentialsHandle?.Dispose(); 942_credentialsHandle?.Dispose();
System.Net.Sockets (9)
System\Net\Sockets\SafeSocketHandle.cs (1)
103Dispose();
System\Net\Sockets\Socket.cs (2)
1082acceptedSocketHandle.Dispose(); 3413handle.Dispose();
System\Net\Sockets\Socket.Unix.cs (3)
146oldHandle.Dispose(); 155_handle.Dispose(); 243_handle.Dispose();
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
268s?.Dispose();
System\Net\Sockets\SocketPal.Unix.cs (2)
99socket.Dispose(); 2142fs?.Dispose();
System.Net.WebSockets (8)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (4)
29_stream?.Dispose(); 117_stream.Dispose(); 221stream?.Dispose(); 230stream.Dispose();
System\Net\WebSockets\Compression\WebSocketInflater.cs (4)
61_stream?.Dispose(); 192_stream.Dispose(); 267stream?.Dispose(); 276stream.Dispose();
System.Private.CoreLib (17)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (4)
102handle.Dispose(); 225safeFileHandle.Dispose(); 231safeFileHandle?.Dispose(); 449Dispose();
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1183sfh.Dispose(); 1255sfh.Dispose();
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (3)
63_fileHandle.Dispose(); 117_fileHandle.Dispose(); 129_fileHandle.Dispose();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SafeHandleMarshaller.cs (2)
142_newHandle.Dispose(); 194_newHandle!.Dispose();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
104public void Close() => Dispose();
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
92oldBuffer.Dispose(); 165_buffer.Dispose();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (1)
72/// it remains the responsibility of the caller to call <see cref="SafeHandle.Dispose()"/>.
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
90myHandle.Dispose();
System.Security.Cryptography (84)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs (1)
31ret.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (2)
32key?.Dispose(); 88key?.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
95handle?.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.KdfAlgs.cs (2)
42kdf.Dispose(); 48kdf.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kem.cs (2)
94handle.Dispose(); 114handle.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Mac.cs (2)
118ctx.Dispose(); 171clone.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.MacAlgs.cs (2)
39mac.Dispose(); 45mac.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (6)
81handle.Dispose(); 104handle.Dispose(); 240pkey.Dispose(); 246pkey.Dispose(); 270pkey.Dispose(); 276pkey.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs (1)
25pkey.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.FromData.cs (1)
27handle.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.MLDsa.cs (1)
70handle.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (2)
25pkey.Dispose(); 41pkey.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.SlhDsa.cs (1)
26handle.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.Chain.cs (1)
87req.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
153store.Dispose();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (2)
46newStore.Dispose(); 53newStore.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs (1)
41safeHandle.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs (1)
41safeHandle.Dispose();
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (3)
130key.Dispose(); 170_key.Value?.Dispose(); 189key.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
146handle?.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (2)
190theirKey?.Dispose(); 199ourKey.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs (1)
25key?.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
327handle?.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (2)
76key?.Dispose(); 111_key.Value?.Dispose();
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (3)
42key?.Dispose(); 278key?.Dispose(); 284key.Dispose();
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
650handle?.Dispose();
System\Security\Cryptography\AesCcm.OpenSsl.cs (1)
166public void Dispose() => _keyBox.Dispose();
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
139_ctxHandle.Dispose();
System\Security\Cryptography\AesImplementation.cs (3)
36_keyBox?.Dispose(); 81_keyBox?.Dispose(); 91_keyBox?.Dispose();
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (1)
134_ctxHandle.Dispose();
System\Security\Cryptography\DSAOpenSsl.cs (2)
51key.Dispose(); 107pkeyHandle.Dispose();
System\Security\Cryptography\LiteHash.OpenSsl.cs (1)
79public void Dispose() => _ctx.Dispose();
System\Security\Cryptography\LiteHash.Unix.cs (3)
100_ctx.Dispose(); 190_ctx.Dispose(); 277_ctx.Dispose();
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (1)
36_key?.Dispose();
System\Security\Cryptography\MLDsaOpenSsl.OpenSsl.cs (2)
55upRefHandle.Dispose(); 67_key.Dispose();
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (1)
71_key.Dispose();
System\Security\Cryptography\MLKemOpenSsl.OpenSsl.cs (2)
54upRefHandle.Dispose(); 66_key.Dispose();
System\Security\Cryptography\OpenSslCipherLite.cs (1)
137_ctx.Dispose();
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (1)
80safeHandle.Dispose();
System\Security\Cryptography\SlhDsaImplementation.OpenSsl.cs (1)
50_key?.Dispose();
System\Security\Cryptography\SlhDsaOpenSsl.OpenSsl.cs (2)
67upRefHandle.Dispose(); 79_key.Dispose();
System\Security\Cryptography\SP800108HmacCounterKdfImplementationOpenSsl.cs (1)
24_keyBox.Dispose();
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (2)
75handle.Dispose(); 94handle.Dispose();
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (6)
163certHandle.Dispose(); 179cert.Dispose(); 195cert.Dispose(); 226cert.Dispose(); 836_privateKey.Dispose(); 842_cert.Dispose();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (7)
71_storeCtx?.Dispose(); 72_untrustedLookup?.Dispose(); 73_store?.Dispose(); 137store?.Dispose(); 138untrusted?.Dispose(); 139storeCtx?.Dispose(); 734_store.Dispose();
UIAutomationClient (2)
MS\Internal\Automation\ClientEventManager.cs (2)
174ec.EventHandle.Dispose(); // Calls UiaCoreApi.UiaRemoveEvent 307ec.EventHandle.Dispose(); // Calls RemoveEvent
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
34_hTheme.Dispose();
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
535lpSecurityDescriptor.Dispose();