Search Results for

    Show / Hide Table of Contents

    Class ValidationResult

    Represents the result of data validation containing information about validity, errors, and warnings.

    Inheritance
    System.Object
    ValidationResult
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public class ValidationResult : Object

    Constructors

    ValidationResult()

    Declaration
    public ValidationResult()

    Properties

    Errors

    List of validation errors.

    Declaration
    public List<string> Errors { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    IsValid

    Indicates whether the validation was successful.

    Declaration
    public bool IsValid { get; set; }
    Property Value
    Type Description
    System.Boolean

    Warnings

    List of validation warnings.

    Declaration
    public List<string> Warnings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    Methods

    Invalid(String)

    Creates an invalid validation result with the specified error message.

    Declaration
    public static ValidationResult Invalid(string error)
    Parameters
    Type Name Description
    System.String error

    The error message describing the validation failure.

    Returns
    Type Description
    ValidationResult

    An invalid ValidationResult instance with the specified error.

    Valid()

    Creates a valid validation result with no errors or warnings.

    Declaration
    public static ValidationResult Valid()
    Returns
    Type Description
    ValidationResult

    A valid ValidationResult instance.

    Warning(String)

    Creates a valid validation result with a warning message.

    Declaration
    public static ValidationResult Warning(string error)
    Parameters
    Type Name Description
    System.String error

    The warning message.

    Returns
    Type Description
    ValidationResult

    A valid ValidationResult instance with the specified warning.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronBarcode to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronBarcode free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.