Search Results for

    Show / Hide Table of Contents

    Method Forbidden

    | Improve this Doc View Source

    Forbidden()

    Represents a situation where the user does not have permission to perform some action.

    Declaration
    public static Result Forbidden()
    Returns
    Type Description
    Result
    | Improve this Doc View Source

    Forbidden(String)

    Represents a situation where the user does not have permission to perform some action.

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

    An error message.

    Returns
    Type Description
    Result
    | Improve this Doc View Source

    Forbidden(IEnumerable<String>)

    Represents a situation where the user does not have permission to perform some action.

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

    A collection of string that contains error messages.

    Returns
    Type Description
    Result
    | Improve this Doc View Source

    Forbidden(String, IEnumerable<String>)

    Represents a situation where the user does not have permission to perform some action.

    Declaration
    public static Result Forbidden(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
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2023 SimpleResults