Returns true if the input string CAN BE a Base64 string.
Since there is not an exact way to determine if a string is a Base64 string
and not simple text, this method returns true if the string is 'compliant'
with Base64, and so it can be a result of a Base64 encoding.
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| C# |
|---|
public static bool IsBase64(
string toCheck
) |
| Visual Basic |
|---|
Public Shared Function IsBase64 ( _
toCheck As String _
) As Boolean |
| Visual C++ |
|---|
public:
static bool IsBase64(
String^ toCheck
) |
Parameters
- toCheck
- Type: System..::..String
A string to check for Base64
Return Value
Returns true if the input string CAN BE a Base64 string
Exceptions
| Exception | Condition |
|---|
| System..::..ArgumentNullException | |
See Also