Gets a text validation rule. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim ruleName As String
Dim returnValue As TextValidationRuleType

returnValue = ValidationRulesManager.GetTextRule(ruleName)

Syntax

Visual Basic
Public Shared Function GetTextRule ( _
		ruleName As String _
) As TextValidationRuleType
C#
public static TextValidationRuleType GetTextRule (
		string ruleName
)
C++
public:
static TextValidationRuleType^ GetTextRule (
		String^ ruleName
)
J#
public static TextValidationRuleType GetTextRule (
		String ruleName
)
JScript
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