Partager via


ValidationRulesManager.GetTextRule Method

Gets a text validation rule.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
Dim ruleName As String
Dim returnValue As TextValidationRuleType

returnValue = ValidationRulesManager.GetTextRule(ruleName)

Syntax

'Declaration
Public Shared Function GetTextRule ( _
    ruleName As String _
) As TextValidationRuleType
public static TextValidationRuleType GetTextRule (
    string ruleName
)
public:
static TextValidationRuleType^ GetTextRule (
    String^ ruleName
)
public static TextValidationRuleType GetTextRule (
    String ruleName
)
public static function GetTextRule (
    ruleName : String
) : TextValidationRuleType

Parameters

  • ruleName
    [in] Rule name.

Return Value

TextValidationRuleType object.

Exceptions

Exception type Condition
ArgumentException

The specified rule does not exist.

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

ValidationRulesManager Class
ValidationRulesManager Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
TextValidationRuleType Class