Upraviť

Zdieľať cez


X509Certificate.Dispose Method

Definition

Releases the resources used by the current X509Certificate object.

Overloads

Dispose()

Releases all resources used by the current X509Certificate object.

Dispose(Boolean)

Releases all of the unmanaged resources used by this X509Certificate and optionally releases the managed 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()

Source:
X509Certificate.cs
Source:
X509Certificate.cs
Source:
X509Certificate.cs

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

Dispose(Boolean)

Source:
X509Certificate.cs
Source:
X509Certificate.cs
Source:
X509Certificate.cs

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

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.

Applies to