다음을 통해 공유


SerializableSecureStoreCredentialCollection.Dispose Method

Releases all resources used by the current instance of the SerializableSecureStoreCredentialCollection class.

Namespace:  Microsoft.Office.SecureStoreService.Server
Assembly:  Microsoft.Office.SecureStoreService (in Microsoft.Office.SecureStoreService.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SerializableSecureStoreCredentialCollection

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose when you are finished using this class. The Dispose method leaves this class in an unusable state. After calling Dispose , you must release all references to this class so the garbage collector can reclaim the memory that the class was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method. For specific guidance on disposing SharePoint classes, see Best Practices with SharePoint Foundation: Disposing Objects. Note Always call Dispose before you release your last reference to this class. Otherwise, the resources it is using will not be freed until the garbage collector calls this object's Finalize method.

Calling the Dispose() method allows the resources used by this SerializableSecureStoreCredentialCollection to be reallocated for other purposes.

See Also

Reference

SerializableSecureStoreCredentialCollection Class

SerializableSecureStoreCredentialCollection Members

Microsoft.Office.SecureStoreService.Server Namespace