ValidatePatternAttribute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.