File System File System
File System File System
DocFX + Singulink = ♥

Search Results for

    Method IsValid

    IsValid(object?)

    Determines whether the specified value of the object is valid.

    Declaration
    public override bool IsValid(object? value)
    Parameters
    Type Name Description
    object value

    The value of the object to validate.

    Returns
    Type Description
    bool

    true if the specified value is valid; otherwise, false.

    Overrides
    ValidationAttribute.IsValid(object)
    Exceptions
    Type Condition
    InvalidOperationException

    The current attribute is malformed.

    NotImplementedException

    Neither overload of IsValid has been implemented by a derived class.

    IsValid(object?, ValidationContext)

    Validates the specified value with respect to the current validation attribute.

    Declaration
    protected override ValidationResult? IsValid(object? value, ValidationContext validationContext)
    Parameters
    Type Name Description
    object value

    The value to validate.

    ValidationContext validationContext

    The context information about the validation operation.

    Returns
    Type Description
    ValidationResult

    An instance of the ValidationResult class.

    Overrides
    ValidationAttribute.IsValid(object, ValidationContext)
    Exceptions
    Type Condition
    InvalidOperationException

    The current attribute is malformed.

    NotImplementedException

    IsValid(object, ValidationContext) has not been implemented by a derived class.

    © Singulink. All rights reserved.