PropertyInvalidExceptionValidateImplementsInterfaceTInterface Method (Object, String) |
Validate that the given property implements the specified interface.
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 ValidateImplementsInterface<TInterface>(
Object value,
string propertyName
)
Public Shared Sub ValidateImplementsInterface(Of TInterface) (
value As Object,
propertyName As String
)
public:
generic<typename TInterface>
static void ValidateImplementsInterface(
Object^ value,
String^ propertyName
)
static member ValidateImplementsInterface :
value : Object *
propertyName : string -> unit
Parameters
- value
- Type: SystemObject
The property value. - propertyName
- Type: SystemString
The name of the property.
Type Parameters
- TInterface
- The type of interface expected.
Exceptions See Also