ThrowIfNotBase64String Method
Definition
ThrowIfNotBase64String(string, string, string)
Validates and throws an ArgumentOutOfRangeException if the specified argument consist of anything besides a base-64 structure.
public static void ThrowIfNotBase64String(string argument, string message = "Value must consist only of base-64 digits.", string paramName = null)
Parameters
argumentstringThe value to be evaluated.
messagestringA message that describes the error.
paramNamestringThe name of the parameter that caused the exception.
Exceptions
- ArgumentOutOfRangeException
argumentmust consist only of base-64 digits.