Validation Framework
Search Results for

    Show / Hide Table of Contents

    Class UserProfileValidator

    Example validator class demonstrating complex object validation using ValidationBuilder.

    Inheritance
    object
    UserProfileValidator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ValidationFramework
    Assembly: ValidationFramework.dll
    Syntax
    public class UserProfileValidator

    Constructors

    | Edit this page View Source

    UserProfileValidator()

    Initializes a new instance of the UserProfileValidator class with pre-configured validations.

    Declaration
    public UserProfileValidator()

    Methods

    | Edit this page View Source

    ValidateProfile(UserProfile)

    Validates a user profile against all configured validation rules.

    Declaration
    public ValidationResult ValidateProfile(UserProfile profile)
    Parameters
    Type Name Description
    UserProfile profile

    The user profile to validate.

    Returns
    Type Description
    ValidationResult

    A ValidationResult containing any validation errors.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX