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.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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.