ExportCertificate Method
Saves the current certificate to a PFX file.
Syntax
[VB.NET] Public Sub ExportCertificate(ByVal PFXFile As String, ByVal Password As String)
[C#] public void ExportCertificate(string PFXFile, string password);
Remarks
This method will save the current certificate to a PFX file. The current certificate and its private key are saved to the file specified by PFXFile in PKCS12 format. The file contents are protected by Password.
NOTE: This functionality is not available in Xamarin.
NOTE: This method has a corresponding asynchronous version (ExportCertificateAsync) for use in the Xamarin environment.