X509Certificate.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par