Click or drag to resize

PropertyInvalidExceptionValidateImplementsInterfaceTInterface Method (Object, String, String)

Validate that the given property implements the specified interface.

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 ValidateImplementsInterface<TInterface>(
	Object value,
	string propertyName,
	string exceptionMessage
)

Parameters

value
Type: SystemObject
The property value.
propertyName
Type: SystemString
The name of the property.
exceptionMessage
Type: SystemString
The message to use when throwing the exception.

Type Parameters

TInterface
The type of interface expected.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value does not implement TInterface.
See Also