X509CertificateStore.Dispose Method
Releases all resources used by the X509CertificateStore.
Namespace: Microsoft.Web.Services2.Security.X509
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim x509CertificateStore1 As X509CertificateStore
x509CertificateStore1.Dispose()
Syntax
'Declaration
Public NotOverridable Sub Dispose()
public sealed void Dispose();
public: Void Dispose();
public final void Dispose();
public final function Dispose();
Remarks
Call Dispose when you are finished using the X509CertificateStore. The Dispose method leaves the X509CertificateStore in an unusable state. After calling Dispose, you must release all references to the X509CertificateStore so the garbage collector can reclaim the memory that the X509CertificateStore had occupied.
Note
Always call Dispose before you release your last reference to the X509CertificateStore. Otherwise, the resources it is using are not freed until the garbage collector calls the Finalize method of X509CertificateStore .
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
X509CertificateStore Class
Microsoft.Web.Services2.Security.X509 Namespace