Class ImageValidationException
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
Exception that is thrown when an image is not found in a search method.
public class ImageValidationException : ValidationException, ISerializable, _Exception
- Inheritance
-
ImageValidationException
- Implements
- Inherited Members
Constructors
ImageValidationException()
Creates a new instance.
public ImageValidationException()
ImageValidationException(Bitmap)
Creates a new instance.
public ImageValidationException(Bitmap image)
Parameters
imageBitmapThe image which was searched in.
ImageValidationException(Bitmap, Bitmap)
Creates a new instance.
public ImageValidationException(Bitmap image, Bitmap feature)
Parameters
imageBitmapThe image in which the
featurewas searched.featureBitmapThe feature that was searched for.
ImageValidationException(SerializationInfo, StreamingContext)
Creates a new instance.
protected ImageValidationException(SerializationInfo si, StreamingContext sc)
Parameters
siSerializationInfoThe serialization info.
scStreamingContextThe streaming context.
ImageValidationException(string, Bitmap)
Creates a new instance.
public ImageValidationException(string message, Bitmap image)
Parameters
ImageValidationException(string, Bitmap, Bitmap)
Creates a new instance.
public ImageValidationException(string message, Bitmap image, Bitmap feature)
Parameters
messagestringThe exception message.
imageBitmapThe image in which the
featurewas searched.featureBitmapThe feature that was searched for.
ImageValidationException(string, Bitmap, Bitmap, Exception)
Creates a new instance.
public ImageValidationException(string message, Bitmap image, Bitmap feature, Exception innerException)
Parameters
messagestringThe exception message.
imageBitmapThe image in which the
featurewas searched.featureBitmapThe feature that was searched for.
innerExceptionExceptionThe inner exception.
ImageValidationException(string, Bitmap, Exception)
Creates a new instance.
public ImageValidationException(string message, Bitmap image, Exception innerException)
Parameters
messagestringThe exception message.
imageBitmapThe image which was searched in.
innerExceptionExceptionThe inner exception.
Properties
Feature
Gets the feature that was searched for.
public Bitmap Feature { get; }
Property Value
Image
Gets the image in which the Feature was searched.
public Bitmap Image { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothing in Visual Basic).