Class DirectoryExistsOrCreateAttribute
Validates that if the user specifies a value for a property that the value represents a directory that exists
as determined by System.IO.Directory.Exists(directory).
Inheritance
DirectoryExistsOrCreateAttribute
Assembly: AnalysisPrograms.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class DirectoryExistsOrCreateAttribute : ValidationAttribute
Constructors
|
Improve this Doc
View Source
DirectoryExistsOrCreateAttribute(Boolean, Boolean)
Declaration
public DirectoryExistsOrCreateAttribute(bool createIfNotExists = false, bool shouldExist = true)
Parameters
Methods
|
Improve this Doc
View Source
IsValid(Object, ValidationContext)
Validates that the given directory exists.
Declaration
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
Parameters
Returns
Overrides
Extension Methods