X509Certificate2Collection.TryExportPkcs7Pem(Span<Char>, Int32) 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.
Attempts to export the X.509 public certificates as a PKCS7 certificate collection, encoded as PEM.
public:
bool TryExportPkcs7Pem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public bool TryExportPkcs7Pem (Span<char> destination, out int charsWritten);
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.TryExportPkcs7Pem : Span<char> * int -> bool
Public Function TryExportPkcs7Pem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Parameters
- charsWritten
- Int32
When this method returns, the total number of characters written to destination
.
Returns
true
if destination
was large enough to receive PEM encoded PKCS7 certificate collection; otherwise, false
.
- Attributes
Exceptions
A certificate is corrupt, in an invalid state, or could not be exported to PEM.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.