ControlsValidator.AddTextControl Method
Adds a text control to be managed by the controls validator. 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
'Usage
Dim instance As ControlsValidator
Dim control As Control
Dim rules As Dictionary(Of String, ValidationRule)
Dim errorString As String
instance.AddTextControl(control, rules, errorString)
Syntax
'Declaration
Public Sub AddTextControl ( _
control As Control, _
rules As Dictionary(Of String, ValidationRule), _
errorString As String _
)
public void AddTextControl (
Control control,
Dictionary<string,ValidationRule> rules,
string errorString
)
public:
void AddTextControl (
Control^ control,
Dictionary<String^, ValidationRule^>^ rules,
String^ errorString
)
public void AddTextControl (
Control control,
Dictionary<String,ValidationRule> rules,
String errorString
)
public function AddTextControl (
control : Control,
rules : Dictionary<String,ValidationRule>,
errorString : String
)
Parameters
- control
[in] System.Windows.Forms.Control object.
- rules
[in] System.Collections.Generic.Dictionary object that represents ValidationRule objects.
- 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
Reference
ControlsValidator Class
ControlsValidator Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
ValidationRule