ControlsValidator.SetActiveValidationRule Method

Sets the active validation rule for the specified control. 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 ruleName As String

instance.SetActiveValidationRule(control, ruleName)

Syntax

'Declaration
Public Sub SetActiveValidationRule ( _
    control As Control, _
    ruleName As String _
)
public void SetActiveValidationRule (
    Control control,
    string ruleName
)
public:
void SetActiveValidationRule (
    Control^ control, 
    String^ ruleName
)
public void SetActiveValidationRule (
    Control control, 
    String ruleName
)
public function SetActiveValidationRule (
    control : Control, 
    ruleName : String
)

Parameters

  • control
    [in] System.Windows.Forms.Control object.
  • ruleName
    [in] Name of the validation rule.

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