FileAttribute Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
Specifies the file size, height, width and allowed filetypes of uploaded images.
public class FileAttribute : ValidationAttribute
- Inheritance:
- System.Object → FileAttribute
Constructors
File |
Initializes a new instance of the FileAttribute class. |
Properties
Extensions | Gets or sets the allowed file extensions. |
Max |
Gets or sets the maximum file size. |
Min |
Gets or sets the minimum height in pixels. |
Min |
Gets or sets the minimum width in pixels. |
Placeholder |
Gets or sets the name of the placeholder image. |
Methods
Is |
Checks that the value of the data field is valid. |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |