Class FileSafeNameValidationAttribute
Validates that the string property value conforms to a file safe name. See
Utils.StringHelper.IsSafeFileName(string, bool)
Inheritance
FileSafeNameValidationAttribute
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class FileSafeNameValidationAttribute : ValidationAttribute
Constructors
FileSafeNameValidationAttribute()
Declaration
public FileSafeNameValidationAttribute()
Properties
AllowNulls
Declaration
public bool AllowNulls { get; set; }
Property Value
AllowParamAtSign
Declaration
public bool AllowParamAtSign { get; set; }
Property Value
ValidIfTrue
Declaration
public string ValidIfTrue { get; set; }
Property Value
Methods
IsValid(object, ValidationContext)
Declaration
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
Parameters
Returns
Overrides
Extension Methods