Table of Contents

ThrowIfNotBase64String Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Validator.cs

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

argument string

The value to be evaluated.

message string

A message that describes the error.

paramName string

The name of the parameter that caused the exception.

Exceptions

ArgumentOutOfRangeException

argument must consist only of base-64 digits.