約60件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 ...

2025/5/20 -The ErrorMessage argument was added in PowerShell 6. Remarks. This attribute can be used only once per parameter. If this attribute is applied ...

2022/5/3 -As a workaround in Windows PowerShell, you could use the ValidateScript Attribute Declaration or you could create your own attribute declaration ...

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

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

2026/6/1 -The ValidateScript attribute lets you define custom validation logic using a script block. ... ErrorMessage = "{0} isn't a future date. Specify a ...

2025/2/18 -[Parameter(Mandatory)]. [ValidateScript(. { $_ -ge (Get-Date).AddDays(-30).Date },. ErrorMessage = "{0:d} can only be up to 30 days ago.

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

2018/5/3 -A custom error message can also be used with ValidateScript and ValidateSet just like with what's shown in the previous example, except ...

2020/10/19 -To illustrate how using ErrorMessage within your ValidateSet , ValidateScript , and ValidatePattern decorators can further move the validation ...