'Declaration Public Sub SetValidationSettings( _ ByVal control As Control, _ ByVal validationSettings As ValidationSettings _ )
public void SetValidationSettings( Control control, ValidationSettings validationSettings )
A ValidationSettings instance can be extended to any control, with the exception of the Infragistics controls that host embeddable editors. The following list enumerates these controls:
While a ValidationSettings instance can be extended to any control, doing so will only have an effect if the control supports validation in the classic sense of the word. For example, extending a ValidationSettings instance to a Panel control is possible, but doing so will have no real effect since the Panel control does not support editing a value. The reason a ValidationSettings is extended more liberally than might be expected is that the alternative could prevent one from being extended to a control that a developer might have added validation support to in a derived class.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2