Search Results for

    Show / Hide Table of Contents

    Class ValidationContext<T>

    Inheritance
    System.Object
    ValidationContext
    ValidationContext<T>
    CommandHandlerBase<TCommand>
    Inherited Members
    ValidationContext.ValidationFailures
    ValidationContext.ValidationFailed
    ValidationContext.AddError(ValidationFailure)
    ValidationContext.AddError(String, String, Severity)
    ValidationContext.ThrowError(ValidationFailure)
    ValidationContext.ThrowError(String)
    ValidationContext.ThrowIfAnyErrors()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public class ValidationContext<T> : ValidationContext
    Type Parameters
    Name Description
    T

    Properties

    Instance

    Declaration
    public static ValidationContext<T> Instance { get; }
    Property Value
    Type Description
    ValidationContext<T>

    Methods

    AddError(Expression<Func<T, Object>>, String, String, Severity)

    Declaration
    public void AddError(Expression<Func<T, object>> property, string errorMessage, string errorCode = null, Severity severity = Severity.Error)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, System.Object>> property
    System.String errorMessage
    System.String errorCode
    FluentValidation.Severity severity

    ThrowError(Expression<Func<T, Object>>, String)

    Declaration
    public void ThrowError(Expression<Func<T, object>> property, string errorMessage)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<T, System.Object>> property
    System.String errorMessage
    In This Article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX