ModelValidatorsExtensionsIsImageValid(Int32, Int32, FileResourceTypeMap, ValidationModel) Method

Checks whether an uploaded image is valid for the assigned Image Resource Type Map

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static bool IsImageValid(
	int imageWidth,
	int imageHeight,
	FileResourceTypeMap valueMap,
	out ValidationModel validationModel
)

Parameters

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

Return Value

Boolean
if all fields have been properly filled in.

See Also