Search Results for

    Show / Hide Table of Contents

    Class FilePathExistsAttributeBase

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

    Inheritance
    System.Object
    System.Attribute
    System.ComponentModel.DataAnnotations.ValidationAttribute
    FilePathExistsAttributeBase
    DirectoryExistsAttribute
    FileExistsAttribute
    FileOrDirectoryExistsAttribute
    Namespace: McMaster.Extensions.CommandLineUtils.Validation
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public abstract class FilePathExistsAttributeBase : 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