Creates a new Certificate from a string representation.
Namespace: LLCryptoLib.Security.CertificatesAssembly: 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
| Exception | Condition |
|---|
| System..::..ArgumentNullException | rawString if a null reference (Nothing in Visual Basic). |
| LLCryptoLib.Security.Certificates..::..CertificateException | An error occurs while loading the specified certificate. |
| System..::..FormatException | The length of rawString is less than 4 -or- the length of rawString is not an even multiple of 4. |
See Also