Search Results for

    Show / Hide Table of Contents

    Class FilePathNotExistsAttributeBase

    Base type for attributes that check for files or directories not existing.

    Inheritance
    System.Object
    System.Attribute
    System.ComponentModel.DataAnnotations.ValidationAttribute
    FilePathNotExistsAttributeBase
    DirectoryNotExistsAttribute
    FileNotExistsAttribute
    FileOrDirectoryNotExistsAttribute
    Namespace: McMaster.Extensions.CommandLineUtils.Validation
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public abstract class FilePathNotExistsAttributeBase : ValidationAttribute

    Methods

    | Improve this Doc View Source

    IsValid(Object, ValidationContext)

    Declaration
    protected override ValidationResult IsValid(object value, ValidationContext validationContext)
    Parameters
    Type Name Description
    System.Object value
    System.ComponentModel.DataAnnotations.ValidationContext validationContext
    Returns
    Type Description
    System.ComponentModel.DataAnnotations.ValidationResult
    Overrides
    System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid(System.Object, System.ComponentModel.DataAnnotations.ValidationContext)
    • Improve this Doc
    • View Source
    In This Article
    Back to top