X509Certificate2Collection.ExportPkcs7Pem Method

Definition

Exports the X.509 public certificates as a PKCS7 certificate collection, encoded as PEM.

public:
 System::String ^ ExportPkcs7Pem();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public string ExportPkcs7Pem ();
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.ExportPkcs7Pem : unit -> string
Public Function ExportPkcs7Pem () As String

Returns

The PEM encoded PKCS7 collection.

Attributes

Exceptions

A certificate is corrupt, in an invalid state, or could not be exported to PEM.

Applies to