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: 24.2.419.0 (24.2.419.0)
Syntax public static void ValidateImplementsInterface<TInterface>(
Object value,
string propertyName,
string exceptionMessage
)
Public Shared Sub ValidateImplementsInterface(Of TInterface) (
value As Object,
propertyName As String,
exceptionMessage As String
)
public:
generic<typename TInterface>
static void ValidateImplementsInterface(
Object^ value,
String^ propertyName,
String^ exceptionMessage
)
static member ValidateImplementsInterface :
value : Object *
propertyName : string *
exceptionMessage : string -> unit
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 See Also