Deletes private key material associated with a X.509 certificate from file system or hardware storage.
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 126.96.36.199 (188.8.131.52)
public static bool DeletePrivateKey(
this X509Certificate2 cert
Public Shared Function DeletePrivateKey (
cert As X509Certificate2
) As Boolean
static bool DeletePrivateKey(
static member DeletePrivateKey :
cert : X509Certificate2 -> bool
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
An instance of X.509 certificate.
if associated private key was found and successfully deleted, otherwise False
In Visual Basic and C#, you can call this method as an instance method on any object of type X509Certificate2
. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic)
or Extension Methods (C# Programming Guide)