Click or drag to resize

PropertyInvalidExceptionValidateNonNegative Method (Int32, String, String)

Validate that the given property value must be non-negative, and throw PropertyInvalidException if it is not.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.3.411.0 (21.3.411.0)
Syntax
public static void ValidateNonNegative(
	int value,
	string propertyName,
	string exceptionMessage
)

Parameters

value
Type: SystemInt32
The property value.
propertyName
Type: SystemString
The name of the property.
exceptionMessage
Type: SystemString
The message to use when throwing the exception.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value is less than zero.
See Also