約108件1ページ目

日本語のみで絞り込む

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/2/18 -Note: Starting with PowerShell 6, you can provide custom Error Messages displayed when parameter input validation fails. To specify these, ...

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 ...

2022/9/30 -Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the ...

2019/5/21 -ValidateScript is designed to be inclusive. If any item fails, it's designed to prevent the script from being run. Also, ValidateScript is ...

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

2012/4/12 -The valid dates pass, dates outside the range fail the validation test and the last value which isn't a legal date also fails but with a ...

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 ( ...

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