ObjectExtensionsValidateDataAnnotations Method
Validate class with validator of DataAnnotations.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static void ValidateDataAnnotations(
this Object instance,
bool validateAllProperties
)
<ExtensionAttribute>
Public Shared Sub ValidateDataAnnotations (
instance As Object,
validateAllProperties As Boolean
)
- instance Object
- The instance of the class to validate.
- validateAllProperties Boolean
- Indicates whether all properties should be validated.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).