Table of Contents

Class ValidateData

Namespace
SunamoInterfaces._public.SunamoArgs
Assembly
SunamoInterfaces.dll

Configuration for data validation operations.

public class ValidateData
Inheritance
ValidateData
Inherited Members
Extension Methods

Fields

Default

Gets the default validation configuration.

public static readonly ValidateData Default

Field Value

ValidateData

Properties

ExcludedStrings

Gets or sets the list of strings to exclude from validation.

public List<string> ExcludedStrings { get; set; }

Property Value

List<string>

IsAllowingEmpty

Gets or sets a value indicating whether empty values are allowed.

public bool IsAllowingEmpty { get; set; }

Property Value

bool

IsTrimming

Gets or sets a value indicating whether to trim whitespace before validation.

public bool IsTrimming { get; set; }

Property Value

bool

MessageToReallyShow

Gets or sets the message to actually show to the user.

public string? MessageToReallyShow { get; set; }

Property Value

string

MessageWhenValidateMethodFails

Gets or sets the message to show when validation method fails.

public string? MessageWhenValidateMethodFails { get; set; }

Property Value

string

ValidateMethod

Gets or sets the custom validation method function.

public Func<string, bool>? ValidateMethod { get; set; }

Property Value

Func<string, bool>