X509Certificate2.GetSlhDsaPrivateKey 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.
Gets the SlhDsa private key from this certificate.
public:
 System::Security::Cryptography::SlhDsa ^ GetSlhDsaPrivateKey();
	[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public System.Security.Cryptography.SlhDsa? GetSlhDsaPrivateKey();
	[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.GetSlhDsaPrivateKey : unit -> System.Security.Cryptography.SlhDsa
	Public Function GetSlhDsaPrivateKey () As SlhDsa
	Returns
The private key, or null if this certificate does not have an SLH-DSA private key.
- Attributes
 
Exceptions
An error occurred accessing the private key.