MicrosoftDocs / PowerShell-Docs

The official PowerShell documentation sources
https://learn.microsoft.com/powershell
Creative Commons Attribution 4.0 International
1.93k stars 1.55k forks source link

(AB#263705) Fix description for example using `[ValidateScript()]` #11180

Closed michaeltlombardi closed 3 weeks ago

michaeltlombardi commented 3 weeks ago

PR Summary

Prior to this change, the example description in the article How to validate an argument using a script declared that the example validates that the input belongs to a set of possible values. That description belongs to a different example, using [ValidateSet()].

This change:

PR Checklist

learn-build-service-prod[bot] commented 3 weeks ago

Learn Build status updates of commit 4eed9bc:

:white_check_mark: Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/developer/cmdlet/how-to-validate-an-argument-using-script.md :white_check_mark:Succeeded View (>=powershell-5.1)

For more details, please refer to the build report.

For any questions, please: