Click or drag to resize

PropertyInvalidExceptionValidateGreaterThanZero Method (Int32, String)

Validate that the given property value must be greater than zero, and throw PropertyInvalidException if it is not.

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

Parameters

value
Type: SystemInt32
The property value.
propertyName
Type: SystemString
The name of the property.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value is less than or equal to zero.
See Also