Share via


ValidatePatternAttribute(String) Constructor

Definition

Initializes a new instance of the ValidatePatternAttribute class.

public:
 ValidatePatternAttribute(System::String ^ regexPattern);
public:
 ValidatePatternAttribute(Platform::String ^ regexPattern);
 ValidatePatternAttribute(std::wstring const & regexPattern);
public ValidatePatternAttribute (string regexPattern);
new System.Management.Automation.ValidatePatternAttribute : string -> System.Management.Automation.ValidatePatternAttribute
Public Sub New (regexPattern As String)

Parameters

regexPattern
String

Pattern string to match.

Exceptions

For invalid arguments.

Applies to