Adds a control to the validator, but specifies that actual validation will be performed by the specified evaluator. This method supports the Configuration Manager 2007 infrastructure and is not intended to be used directly from your code. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim instance As ControlsValidator
Dim control As Control
Dim evaluator As ControlDataStateEvaluator
Dim errorString As String

instance.AddControl(control, evaluator, errorString)

Syntax

Visual Basic
Public Sub AddControl ( _
		control As Control, _
		evaluator As ControlDataStateEvaluator, _
		errorString As String _
)
C#
public void AddControl (
		Control control,
		ControlDataStateEvaluator evaluator,
		string errorString
)
C++
public:
void AddControl (
		Control^ control, 
		ControlDataStateEvaluator^ evaluator, 
		String^ errorString
)
J#
public void AddControl (
		Control control, 
		ControlDataStateEvaluator evaluator, 
		String errorString
)
JScript
public function AddControl (
		control : Control, 
		evaluator : ControlDataStateEvaluator, 
		errorString : String
)

Parameters

control

[in] System.Windows.Forms.Control object.

evaluator

[in] ControlDataStateEvaluator delegate.

errorString

[in] Error string.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also