Search Results for

    Show / Hide Table of Contents

    Method Invalid

    | Improve this Doc View Source

    Invalid()

    Represents a validation error that prevents the underlying service from completing.

    Declaration
    public static Result Invalid()
    Returns
    Type Description
    Result
    Remarks

    Used in situations where the consumer provides invalid data.

    | Improve this Doc View Source

    Invalid(String)

    Represents a validation error that prevents the underlying service from completing.

    Declaration
    public static Result Invalid(string message)
    Parameters
    Type Name Description
    String message

    An error message.

    Returns
    Type Description
    Result
    Remarks

    Used in situations where the consumer provides invalid data.

    | Improve this Doc View Source

    Invalid(IEnumerable<String>)

    Represents a validation error that prevents the underlying service from completing.

    Declaration
    public static Result Invalid(IEnumerable<string> errors)
    Parameters
    Type Name Description
    IEnumerable<String> errors

    A collection of string that contains error messages.

    Returns
    Type Description
    Result
    Remarks

    Used in situations where the consumer provides invalid data.

    | Improve this Doc View Source

    Invalid(String, IEnumerable<String>)

    Represents a validation error that prevents the underlying service from completing.

    Declaration
    public static Result Invalid(string message, IEnumerable<string> errors)
    Parameters
    Type Name Description
    String message

    A general description of the error.

    IEnumerable<String> errors

    A collection of errors.

    Returns
    Type Description
    Result
    Remarks

    Used in situations where the consumer provides invalid data.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2023 SimpleResults