Implemented interface member:
method
Dispose
System.IDisposable.Dispose()
363 references to Dispose
ComSvcConfig (1)
ComAdminWrapper.cs (1)
294regkey.Dispose();
mscorlib (56)
microsoft\win32\registrykey.cs (1)
233hkey.Dispose();
microsoft\win32\win32native.cs (1)
982handle.Dispose();
system\io\filestream.cs (4)
1294_handle.Dispose(); 1717_handle.Dispose(); 2532_handle.Dispose(); 2589_handle.Dispose();
system\io\filesystemenumerable.cs (6)
295_hnd.Dispose(); 309_hnd.Dispose(); 371_hnd.Dispose(); 436_hnd.Dispose(); 484_hnd.Dispose(); 576hnd.Dispose();
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1501m_handle.Dispose();
system\security\accesscontrol\privilege.cs (1)
347this.threadHandle.Dispose();
system\security\cryptography\cryptoapitransform.cs (2)
148_safeKeyHandle.Dispose(); 151_safeProvHandle.Dispose();
system\security\cryptography\dsacryptoserviceprovider.cs (3)
105_safeKeyHandle.Dispose(); 107_safeProvHandle.Dispose(); 219_safeKeyHandle.Dispose();
system\security\cryptography\icspasymmetricalgorithm.cs (6)
85safeProvHandle.Dispose(); 109safeProvHandle.Dispose(); 127safeProvHandle.Dispose(); 145safeProvHandle.Dispose(); 160safeProvHandle.Dispose(); 178safeProvHandle.Dispose();
system\security\cryptography\md5cryptoserviceprovider.cs (2)
42_safeHashHandle.Dispose(); 53_safeHashHandle.Dispose();
system\security\cryptography\rngcryptoserviceprovider.cs (1)
70m_safeProvHandle.Dispose();
system\security\cryptography\rsacryptoserviceprovider.cs (3)
152_safeKeyHandle.Dispose(); 154_safeProvHandle.Dispose(); 277_safeKeyHandle.Dispose();
system\security\cryptography\sha1cryptoserviceprovider.cs (2)
34_safeHashHandle.Dispose(); 46_safeHashHandle.Dispose();
system\security\cryptography\utils.cs (2)
411TempFetchedKeyHandle.Dispose(); 422safeKeyHandle.Dispose();
system\security\cryptography\x509certificates\x509certificate.cs (2)
614m_safeCertContext.Dispose(); 773safeCertStoreHandle.Dispose();
system\security\framesecuritydescriptor.cs (1)
208m_callerToken.Dispose();
system\security\principal\ntaccount.cs (3)
445LsaHandle.Dispose(); 446ReferencedDomainsPtr.Dispose(); 447SidsPtr.Dispose();
system\security\principal\sid.cs (3)
1073LsaHandle.Dispose(); 1074ReferencedDomainsPtr.Dispose(); 1075NamesPtr.Dispose();
system\security\principal\windowsidentity.cs (7)
324pLogonSessionData.Dispose(); 427token.Dispose(); 692m_safeTokenHandle.Dispose(); 813wi.m_safeTokenHandle.Dispose(); 953safeLocalAllocHandle.Dispose(); 1143logonHandle.Dispose(); 1145profile.Dispose();
system\security\principal\windowsimpersonationcontext.cs (1)
143m_safeTokenHandle.Dispose();
system\security\principal\windowsprincipal.cs (1)
257token.Dispose();
system\threading\mutex.cs (1)
218cleanupInfo.mutexHandle.Dispose();
system\threading\timer.cs (1)
251m_appDomainTimer.Dispose();
system\typenameparser.cs (1)
125m_NativeParser.Dispose();
PresentationCore (6)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
347_hContext.Dispose();
Core\CSharp\System\Windows\Input\Cursor.cs (1)
144_cursorHandle.Dispose();
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
136_colorContextHandle.Dispose();
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (1)
345pIMetadataReader.Dispose();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (2)
371_pBackBufferLock.Dispose(); 741_pDoubleBufferedBitmap.Dispose();
PresentationFramework (3)
src\Framework\System\Windows\Standard\NativeMethods.cs (3)
1479dc.Dispose(); 1517dc.Dispose(); 1643safeHandle.Dispose();
System (57)
net\System\Net\_SafeNetHandles.cs (2)
751socketHandle.Dispose(); 2791handle.Dispose();
net\System\Net\NetworkInformation\TeredoHelper.cs (3)
91table.Dispose(); 132helper.cancelHandle.Dispose(); 161cancelHandle.Dispose();
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
740m_NativeOverlapped.Dispose();
net\System\Net\Sockets\Socket.cs (5)
6302m_Handle.Dispose(); 6342m_Handle.Dispose(); 6355m_Handle.Dispose(); 6370m_Handle.Dispose(); 9477m_PtrNativeOverlapped.Dispose();
net\System\Net\UnsafeNativeMethods.cs (2)
1753chainList.Dispose(); 1754criteria.Dispose();
net\System\Net\WebSockets\WebSocketBase.cs (1)
1387SessionHandle.Dispose();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
1043m_PtrNativeOverlapped.Dispose();
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
412webSocketHandle.Dispose();
security\system\security\cryptography\cryptoapi.cs (6)
2897pbEncoded.Dispose(); 2934pbEncoded.Dispose(); 2978ptr.Dispose(); 2979pszCommonName.Dispose(); 3162pbFormat.Dispose(); 3212pbFormat.Dispose();
security\system\security\cryptography\x509\x509certificate2.cs (10)
186decodedParameters.Dispose(); 188decodedKeyValue.Dispose(); 624ptr.Dispose(); 667ptr.Dispose(); 990ptr.Dispose(); 1013pUpnName.Dispose(); 1032decoded.Dispose(); 1125m_safeCertContext.Dispose(); 1226ptr.Dispose(); 1414ptr.Dispose();
security\system\security\cryptography\x509\x509certificate2collection.cs (12)
190safeTargetStoreHandle.Dispose(); 191safeSourceStoreHandle.Dispose(); 221safeCertStoreHandle.Dispose(); 260safeCertStoreHandle.Dispose(); 290safeCertStoreHandle.Dispose(); 388pbEncoded.Dispose(); 389safeCertContextHandle.Dispose(); 611pb.Dispose(); 698pEnumContext.Dispose(); 1046ptr.Dispose(); 1089safeCertStoreHandle.Dispose(); 1127safeCertStoreHandle.Dispose();
security\system\security\cryptography\x509\x509chain.cs (3)
252m_safeCertChainHandle.Dispose(); 402applicationPolicyHandle.Dispose(); 403certificatePolicyHandle.Dispose();
security\system\security\cryptography\x509\x509extension.cs (6)
144decoded.Dispose(); 251decoded.Dispose(); 335decoded.Dispose(); 440decoded.Dispose(); 441pb.Dispose(); 583publicKeyInfo.Dispose();
security\system\security\cryptography\x509\x509store.cs (2)
154m_safeCertStoreHandle.Dispose(); 185m_safeCertStoreHandle.Dispose();
security\system\security\cryptography\x509\x509utils.cs (1)
425pvKey.Dispose();
sys\System\IO\compression\DeflaterZLib.cs (1)
114_zlibStream.Dispose();
System.Configuration (7)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (6)
117safeOutputDataHandle.Dispose(); 121safeEntDataHandle.Dispose(); 125safeInputDataHandle.Dispose(); 184safeOutputDataHandle.Dispose(); 188safeEntDataHandle.Dispose(); 192safeInputDataHandle.Dispose();
System\Configuration\RSAProtectedConfigurationProvider.cs (1)
217hProv.Dispose();
System.Core (36)
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (1)
403duplicate.Dispose();
Microsoft\Win32\UnsafeNativeMethods.cs (1)
198handle.Dispose();
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (1)
258handle.Dispose();
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (1)
81renderContextHandleValues.Dispose();
System\Diagnostics\Eventing\Reader\EventLogReader.cs (1)
212handle.Dispose();
System\Diagnostics\Eventing\Reader\EventLogRecord.cs (1)
377this.handle.Dispose();
System\Diagnostics\Eventing\Reader\EventLogSession.cs (3)
169this.renderContextHandleSystem.Dispose(); 173this.renderContextHandleUser.Dispose(); 176handle.Dispose();
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
149handle.Dispose();
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (1)
557handle.Dispose();
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
84MatchedProvider.m_hProvider.Dispose();
System\IO\LogStream.cs (2)
347_handle.Dispose(); 398handle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (2)
400handle.Dispose(); 615_handle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
237m_viewHandle.Dispose();
System\IO\Pipes\Pipe.cs (3)
176m_clientHandle.Dispose(); 185m_clientHandle.Dispose(); 227serverHandle.Dispose();
System\IO\Pipes\PipeStream.cs (1)
770m_handle.Dispose();
System\Security\Cryptography\AesCryptoServiceProvider.cs (5)
112m_key.Dispose(); 133m_key.Dispose(); 277m_key.Dispose(); 281m_cspHandle.Dispose(); 390m_key.Dispose();
System\Security\Cryptography\BCryptHashAlgorithm.cs (2)
97m_hashHandle.Dispose(); 167m_hashHandle.Dispose();
System\Security\Cryptography\CapiHashAlgorithm.cs (3)
52m_hashHandle.Dispose(); 56m_cspHandle.Dispose(); 99m_hashHandle.Dispose();
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (2)
91m_key.Dispose(); 95m_provider.Dispose();
System\Security\Cryptography\CngKey.cs (3)
482m_kspHandle.Dispose(); 486m_keyHandle.Dispose(); 541keyHandle.Dispose();
System.Data (36)
fx\src\data\System\Data\Odbc\OdbcCommand.cs (8)
628parameterBuffer.Dispose(); 943_dataReaderBuf.Dispose(); 951buffer.Dispose(); 961handle.Dispose(); 971handle.Dispose(); 979handle.Dispose(); 997handle.Dispose(); 1015handle.Dispose();
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
338connectionHandle.Dispose();
fx\src\data\System\Data\Odbc\OdbcEnvironment.cs (1)
41(globalEnvironmentHandle as OdbcEnvironmentHandle).Dispose(); // internally refcounted so will happen correctly
fx\src\data\System\Data\Odbc\OdbcEnvironmentHandle.cs (1)
58Dispose();
fx\src\data\System\Data\OleDb\ColumnBinding.cs (1)
188sptr.Dispose();
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (4)
132_sessionwrp.Dispose(); 136_datasrcwrp.Dispose(); 299_sessionwrp.Dispose(); 302_datasrcwrp.Dispose();
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
667rowHandleNativeBuffer.Dispose(); 737chapter.Dispose();
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (3)
213_transaction.Dispose(); 248_transaction.Dispose(); 323_transaction.Dispose();
fx\src\data\System\Data\OleDb\RowBinding.cs (1)
305base.Dispose();
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
698stateObjHandle.Dispose(); 712marsStateObjHandle.Dispose();
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (2)
246packet.Dispose(); 252_packets.Pop().Dispose();
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (1)
109sessionHandle.Dispose();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
876packetHandle.Dispose(); 879asyncAttnPacket.Dispose (); 882sessionHandle.Dispose(); 3136_sniPacket.Dispose();
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (5)
753hFile.Dispose(); 800hFile.Dispose(); 808eaBuffer.Dispose(); 814qos.Dispose(); 820objectName.Dispose();
System.Drawing (1)
commonui\System\Drawing\Advanced\CustomLineCap.cs (1)
130nativeCap.Dispose();
System.IdentityModel (2)
System\IdentityModel\Selectors\X509CertificateChain.cs (2)
202applicationPolicyHandle.Dispose(); 204certificatePolicyHandle.Dispose();
System.IdentityModel.Selectors (6)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (2)
262nativeCryptoHandle.Dispose(); 275nativeToken.Dispose();
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (1)
252Dispose();
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (2)
153pInData.Dispose(); 217pInData.Dispose();
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (1)
105m_nativeChain.Dispose();
System.Net (66)
net\PeerToPeer\Cloud.cs (1)
260ArrayOfCloudInfoStructures.Dispose();
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
165if(certHandle != null) certHandle.Dispose(); 237if (certHandle != null) certHandle.Dispose(); 406safeEvent.Dispose();
net\PeerToPeer\Collaboration\ContactManager.cs (12)
149if (contact != null) contact.Dispose(); 358if (eventData != null) eventData.Dispose(); 564if(eventData != null) eventData.Dispose(); 779if(eventData != null) eventData.Dispose(); 991if(eventData != null) eventData.Dispose(); 1204if(eventData != null) eventData.Dispose(); 1300contactArray.Dispose(); 1305handlePeerEnum.Dispose(); 1364safeContact.Dispose(); 1452if (contact != null) contact.Dispose(); 1659if(contact != null) contact.Dispose(); 1766if (safeCredentials != null) safeCredentials.Dispose();
net\PeerToPeer\Collaboration\MyContact.cs (3)
208if (eventData != null) eventData.Dispose(); 369if (eventData != null) eventData.Dispose(); 537if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\Peer.cs (9)
410if (presenceInfo != null) presenceInfo.Dispose(); 618if (handlePeerEnum != null) handlePeerEnum.Dispose(); 729if (safeCredentials != null) safeCredentials.Dispose(); 755if (safeResponse != null) safeResponse.Dispose(); 1120m_SafeCollabInvite.Dispose(); 1195if (safeCredentials != null) safeCredentials.Dispose(); 1362if (response != null) response.Dispose(); 1388m_SafeCollabInvite.Dispose(); 1438m_SafeCollabInvite.Dispose();
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
413if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\PeerCollaboration.cs (14)
64if(safePresenceInfo != null) safePresenceInfo.Dispose(); 289if (appLaunchInfoData != null) appLaunchInfoData.Dispose(); 450if (handlePeerEnum != null) handlePeerEnum.Dispose(); 537if (data != null) data.Dispose(); 732appArray.Dispose(); 737handlePeerEnum.Dispose(); 772safeAppRegInfo.Dispose(); 834if (data != null) data.Dispose(); 960objectArray.Dispose(); 965handlePeerEnum.Dispose(); 1154if (eventData != null) eventData.Dispose(); 1320if (eventData != null) eventData.Dispose(); 1485if (eventData != null) eventData.Dispose(); 1650if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\PeerContact.cs (8)
259if (safeCredentials != null) safeCredentials.Dispose(); 299if (handlePeerEnum != null) handlePeerEnum.Dispose(); 408if (contact != null) contact.Dispose(); 422if (contact != null) contact.Dispose(); 1107if (handlePeerEnum != null) handlePeerEnum.Dispose(); 1386if (eventData != null) eventData.Dispose(); 1640if (eventData != null) eventData.Dispose(); 1894if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\PeerEndPoint.cs (1)
342if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\PeerNearMe.cs (1)
664if (eventData != null) eventData.Dispose();
net\PeerToPeer\Collaboration\PeerObject.cs (1)
358if (eventData != null) eventData.Dispose();
net\PeerToPeer\PeerName.cs (5)
187if (shNewPeerName != null) shNewPeerName.Dispose(); 188if (shDefaultIdentity != null) shDefaultIdentity.Dispose(); 231if (shPeerName != null) shPeerName.Dispose(); 307if (shNewPeerName != null) shNewPeerName.Dispose(); 409if (shPeerHostName != null) shPeerHostName.Dispose();
net\PeerToPeer\PeerNameRegistration.cs (1)
641m_RegistrationHandle.Dispose();
net\PeerToPeer\PeerNameResolver.cs (6)
226m_SafePeerNameEndResolve.Dispose(); 297m_SafePeerNameEndResolve.Dispose(); 344shEndPointInfo.Dispose(); 427m_SafePeerNameEndResolve.Dispose(); 472m_SafePeerNameEndResolve.Dispose(); 721shEndPointInfoArray.Dispose();
System.Security (41)
system\security\cryptography\cryptoapi.cs (2)
2423pbEncoded.Dispose(); 2457pbEncoded.Dispose();
system\security\cryptography\pkcs\envelopedpkcs7.cs (5)
174m_safeCryptMsgHandle.Dispose(); 367pbContent.Dispose(); 453m_safeCryptMsgHandle.Dispose(); 460ceei.Dispose(); 565safeCertStoreHandle.Dispose();
system\security\cryptography\pkcs\pkcs9attribute.cs (2)
118pbDecoded.Dispose(); 134pbSigningTime.Dispose();
system\security\cryptography\pkcs\pkcsmisc.cs (3)
329pKeyInfo.Dispose(); 429pbParameters.Dispose(); 574safeCryptMsgHandle.Dispose();
system\security\cryptography\pkcs\pkcsutils.cs (8)
144pbAlgorithm.Dispose(); 238safeCertContextHandle.Dispose(); 325pbCmsgSignerInfo.Dispose(); 388ptr.Dispose(); 410pbDecoded.Dispose(); 1102pKeyProvInfo.Dispose(); 1104pSignatureAlgorithm.Dispose(); 1110handle.Dispose();
system\security\cryptography\pkcs\signedpkcs7.cs (9)
140m_safeCryptMsgHandle.Dispose(); 288m_safeCryptMsgHandle.Dispose(); 346safeCryptMsgHandle.Dispose(); 348pEncodedBagOfCerts.Dispose(); 352pSignerEncodeInfo.Dispose(); 358safeCryptProvHandle.Dispose(); 364m_safeCryptMsgHandle.Dispose(); 391pSignerEncodeInfo.Dispose(); 397safeCryptProvHandle.Dispose();
system\security\cryptography\pkcs\signerinfo.cs (9)
325pSignerEncodeInfo.Dispose(); 329safeCryptProvHandle.Dispose(); 404pChainContext.Dispose(); 495pbParentEncodedSignerInfo.Dispose(); 510pbParameters.Dispose(); 619pNewAttr.Dispose(); 637pbCounterSignatureValue.Dispose(); 670pbCmsgCmsSignerInfo.Dispose(); 673pbCmsgSignerInfo.Dispose();
system\security\cryptography\x509\x509utils.cs (3)
176ptr.Dispose(); 350applicationPolicyHandle.Dispose(); 351certificatePolicyHandle.Dispose();
System.ServiceModel (11)
System\ServiceModel\Channels\AppContainerInfo.cs (3)
128tokenHandle.Dispose(); 153tokenHandle.Dispose(); 236tokenHandle.Dispose();
System\ServiceModel\Channels\MsmqQueue.cs (2)
150handle.Dispose(); 221handle.Dispose();
System\ServiceModel\Channels\SelfSignedCertificate.cs (3)
206cert.Dispose(); 208key.Dispose(); 210keyContainer.Dispose();
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (3)
52buffer.Dispose(); 192tokenHandle.Dispose(); 336ImpersonationToken.Dispose();
System.Web (2)
Hosting\IIS7WorkerRequest.cs (1)
263_channelBindingToken.Dispose();
Hosting\ISAPIWorkerRequest.cs (1)
2012_channelBindingToken.Dispose();
UIAutomationClient (2)
MS\Internal\Automation\ClientEventManager.cs (2)
188ec.EventHandle.Dispose(); // Calls UiaCoreApi.UiaRemoveEvent 324ec.EventHandle.Dispose(); // Calls RemoveEvent
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
35_hTheme.Dispose();
WindowsBase (24)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (4)
126_hSession.Dispose(); 139_defaultLibraryHandle.Dispose(); 152_envHandle.Dispose(); 780handle.Dispose();
Base\MS\Internal\Security\RightsManagement\InternalSafeNativeMethods.cs (16)
59phSession.Dispose(); 137environmentHandle.Dispose(); 142defaultLibrary.Dispose(); 201phLicenseStorageSession.Dispose(); 291queryRootHandle.Dispose(); 327subQueryHandle.Dispose(); 351subQueryHandle.Dispose(); 419issuanceLicenseHandle.Dispose(); 443userHandle.Dispose(); 465userHandle.Dispose(); 489rightHandle.Dispose(); 554rightHandle.Dispose(); 645ownerHandle.Dispose(); 771boundLicenseHandle.Dispose(); 797decryptorHandle.Dispose(); 822encryptorHandle.Dispose();
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (3)
392_issuanceLicenseHandle.Dispose(); 402handler.Dispose(); 855ownerHandleTemp.Dispose();
Shared\MS\Win32\NativeMethodsOther.cs (1)
662lpSecurityDescriptor.Dispose();
WsatConfig (1)
Configuration\MsdtcClusterUtils.cs (1)
135hResource.Dispose();
WsatUI (4)
Configuration\MsdtcClusterUtils.cs (2)
75hResource.Dispose(); 135hResource.Dispose();
MMCUI\WSATPropertySheet.cs (2)
395dlgTemplate.Dispose(); 396handlePropSheetPage.Dispose();