ModelValidatorsExtensionsIsImageValid(Int32, Int32, FileResourceTypeMap, ValidationModel) Method
Checks whether an uploaded image is valid for the assigned Image Resource Type Map
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static bool IsImageValid(
int imageWidth,
int imageHeight,
FileResourceTypeMap valueMap,
out ValidationModel validationModel
)
- imageWidth Int32
- Width of the image
- imageHeight Int32
- Height of the image
- valueMap FileResourceTypeMap
- Image Resource type
- validationModel ValidationModel
- The validation model containing the result of the check
Boolean if all fields have been properly filled in.