Edit

Share via


X509Certificate2.GetMLDsaPrivateKey Method

Definition

Gets the MLDsa private key from this certificate.

public:
 System::Security::Cryptography::MLDsa ^ GetMLDsaPrivateKey();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public System.Security.Cryptography.MLDsa? GetMLDsaPrivateKey();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.GetMLDsaPrivateKey : unit -> System.Security.Cryptography.MLDsa
Public Function GetMLDsaPrivateKey () As MLDsa

Returns

The private key, or null if this certificate does not have an ML-DSA private key.

Attributes

Exceptions

An error occurred accessing the private key.

Applies to