CodeCarvings.Piczard
ValidateImageFormatId(Guid,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageArchiver Class > ValidateImageFormatId Method : ValidateImageFormatId(Guid,Boolean) Method

imageFormatId
The value to validate.
throwException
If true, an exception is thrown if the value is not valid.
Determines if the provided Guid is a valid image format id; if the "throwException" parameter is true then an Exception is thrown if the value is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateImageFormatId( _
   ByVal imageFormatId As Guid, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateImageFormatId( 
   Guid imageFormatId,
   bool throwException
)

Parameters

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

Return Value

true if the Guid is a valid image format id; otherwise, false.

Exceptions

Exception Description
System.Exception The Guid is not a valid image format id.

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.