Mentalis.org Security Library documentation

Certificate.CreateFromBase64String Method 

Creates a new Certificate from a string representation.

[Visual Basic]
Public Shared Function CreateFromBase64String( _
   ByVal rawString As String _
) As Certificate
[C#]
public static Certificate CreateFromBase64String(
   string rawString
);

Parameters

rawString
A Base64-encoded representation of the certificate.

Return Value

A new Certificate.

Exceptions

Exception TypeCondition
ArgumentNullExceptionrawString if a null reference (Nothing in Visual Basic).
CertificateExceptionAn error occurs while loading the specified certificate.
FormatExceptionThe length of rawString is less than 4 -or- the length of rawString is not an even multiple of 4.

See Also

Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace