CodeCarvings.Piczard
ValidateImageHeight(Int32,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard.Helpers Namespace > ImageHelper Class > ValidateImageHeight Method : ValidateImageHeight(Int32,Boolean) Method

value
The height to validate.
throwException
If true, an exception is thrown if the height is not valid.
Determines whether a specified height is valid against the current MaxImageSize setting - and - (optionally) raise an exception if the height is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateImageHeight( _
   ByVal value As Integer, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateImageHeight( 
   int value,
   bool throwException
)

Parameters

value
The height to validate.
throwException
If true, an exception is thrown if the height is not valid.

Return Value

true if the height is valid.

Exceptions

Exception Description
InvalidImageSizeException The provided image height is not valid.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.