X509Certificate2ExtensionsWinDeletePrivateKey Method
            Deletes private key material associated with a X.509 certificate from file system or hardware storage.
            
Namespace: SysadminsLV.PKI.Cryptography.X509CertificatesAssembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.3.0+a868daf3196ed1ac6592e4f3e5cd2b429fc81eaa
public static bool DeletePrivateKey(
	this X509Certificate2 cert
)
<ExtensionAttribute>
Public Shared Function DeletePrivateKey ( 
	cert As X509Certificate2
) As Boolean
public:
[ExtensionAttribute]
static bool DeletePrivateKey(
	X509Certificate2^ cert
)
[<ExtensionAttribute>]
static member DeletePrivateKey : 
        cert : X509Certificate2 -> bool 
- cert  X509Certificate2
- An instance of X.509 certificate.
BooleanTrue 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).