Show / Hide Table of Contents

Class Base64Attribute

Check if the value is Base64 valid.

Inheritance
System.Object
Base64Attribute
Namespace: StoneCo.Framework.Common.Attributes
Assembly: cs.temp.dll.dll
Syntax
public class Base64Attribute : ValidationAttribute

Methods

IsValid(Object)

Determines whether the value string Base64 specified is valid.

note

If object is null the return is true, because the field may be not required.

Declaration
public override bool IsValid(object value)
Parameters
Type Name Description
System.Object value

The value of the string Base64 to validate.

Returns
Type Description
System.Boolean

True if the specified value is valid, otherwise, false.

Examples
public class Base64Message
{
    [Base64]
    public string Base64 { get; set; }
}
Back to top Generated by DocFX