約3,800件1ページ目

日本語のみで絞り込む

Gets or sets the custom error message that is displayed to the user. The item being validated and the validating scriptblock is passed as the first and ...

2018/11/20 -When I execute the function the catch processes but then is followed by a wall of red error message. What do I need to add to only display my ...

2014/9/29 -Is it possible to have ValidateScript generate a custom error message when a test fails, like say Test-Path ? Instead of this: Test-Folder : ...

2025/5/20 -PowerShell pipes the value to the script, and generates an error if the script returns $false or if the script throws an exception. When you ...

2025/2/18 -Note: Starting with PowerShell 6, you can provide custom Error Messages displayed when parameter input validation fails. To specify these, ...

2013/5/21 -The error message explains (in more words that I could use) that the date failed the validation test. It"™s not a great error message, but ...

2026/6/1 -When validation fails, PowerShell throws an exception with a descriptive error message, preventing invalid values from being used. # ...

2018/5/3 -The following code shows a simple example of using a custom error message with the ValidatePattern parameter validation attribute in PowerShell ...

2020/5/2 -When using a parameter with a ValidateScript attribute, this throws an exception if the parameter is explicitly set to $null, ...

2014/4/2 -Some important issues to take note of include that will throw an error with the validation attribute: Used more than once on a parameter ( ...