ContainerControl.Validate Method (Boolean)
Assembly: System.Windows.Forms (in system.windows.forms.dll)
public boolean Validate ( boolean checkAutoValidate )
public function Validate ( checkAutoValidate : boolean ) : boolean
Parameters
- checkAutoValidate
If true, the value of the AutoValidate property is used to determine if validation should be performed; if false, validation is unconditionally performed.
Return Value
true if validation is successful; otherwise, false.The Validate method validates the last child control that is not validated and its ancestors up through, but not including, the current container control. This overloaded version performs validation based on the following conditions:
-
If the checkAutoValidate parameter is false, validation always occurs for child controls that are not validated.
-
If the checkAutoValidate parameter is false, validation occurs only if the AutoValidate property of the control's parent is enabled.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.