Click or drag to resize

PropertyInvalidExceptionValidateNonNull Method (Object, String)

Validate that the given property value must be non-null, 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 ValidateNonNull(
	Object value,
	string propertyName
)

Parameters

value
Type: SystemObject
The property value.
propertyName
Type: SystemString
The name of the property.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value is null.
See Also