PowerShell's ValidatePattern attribute unleashes a lot of potential with regular expressions, especially when you write functions in scripts that other people will use. Your scripts can reduce a lot of unexpected inputs and decrease the work spent rewriting code to accommodate every possible i...
Automation Assembly: System.Management.Automation.dll Package: Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0Validates that each parameter argument matches the RegexPattern.C++ 复制 public ref class ValidatePatternAttribute sealed : System::Management::Automation::ValidateEnumeratedArgumentsA...