Partager via


TextValidationRuleType Constructor (String, String)

Initializes a new instance of TextValidationRuleType for the specified rule.

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

Usage

'Usage
Dim name As String
Dim rule As String

Dim instance As New TextValidationRuleType(name, rule)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    rule As String _
)
public TextValidationRuleType (
    string name,
    string rule
)
public:
TextValidationRuleType (
    String^ name, 
    String^ rule
)
public TextValidationRuleType (
    String name, 
    String rule
)
public function TextValidationRuleType (
    name : String, 
    rule : String
)

Parameters

  • name
    [in] Name of the rule.
  • rule
    [in] Text for the rule.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

TextValidationRuleType Class
TextValidationRuleType Members
Microsoft.ConfigurationManagement.AdminConsole Namespace