'Declaration Public Overloads Function Validate( _ ByVal component As Object, _ ByVal validateChildren As Boolean, _ ByVal validateHidden As Boolean _ ) As Boolean
'Usage Dim instance As ValidationProvider Dim component As Object Dim validateChildren As Boolean Dim validateHidden As Boolean Dim value As Boolean value = instance.Validate(component, validateChildren, validateHidden)
public bool Validate( object component, bool validateChildren, bool validateHidden )
Parameters
- component
- The component to validate.
- validateChildren
- true if validation is also performed by traversing all children components. false will validate only the passed component.
- validateHidden
- true if validation includes hidden components. false will validate only visible components.
Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.
Return Value
Returns true if components are valid; false otherwise.