Creates a new Certificate from a string representation.

Namespace: LLCryptoLib.Security.Certificates
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static Certificate CreateFromBase64String(
	string rawString
)
Visual Basic
Public Shared Function CreateFromBase64String ( _
	rawString As String _
) As Certificate
Visual C++
public:
static Certificate^ CreateFromBase64String(
	String^ rawString
)

Parameters

rawString
Type: System..::..String
A Base64-encoded representation of the certificate.

Return Value

A new Certificate.

Exceptions

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

See Also