X509Certificate.Dispose X509Certificate.Dispose X509Certificate.Dispose X509Certificate.Dispose Method

Definition

Releases the resources used by the current X509Certificate object.

Overloads

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases all of the unmanaged resources used by this X509Certificate and optionally releases the managed resources.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the current X509Certificate object.

Remarks

Note

X509Certificate implements the IDisposable interface starting with the .NET Framework 4.6; in previous versions of the .NET Framework, the X509Certificate class does not implement this interface, and therefore the Dispose method does not exist.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases all of the unmanaged resources used by this X509Certificate and optionally releases the managed resources.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean Boolean Boolean Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

Note

X509Certificate implements the IDisposable interface starting with the .NET Framework 4.6; in previous versions of the .NET Framework, the X509Certificate class does not implement this interface, and therefore the Dispose method does not exist.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the current X509Certificate object.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

Note

X509Certificate implements the IDisposable interface starting with the .NET Framework 4.6; in previous versions of the .NET Framework, the X509Certificate class does not implement this interface, and therefore the Dispose method does not exist.

Applies to