Fixes #12879 - Add note about Property wrapping in ForEach() method#12882
Fixes #12879 - Add note about Property wrapping in ForEach() method#12882sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
Conversation
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
Pull request overview
Updates the about_Arrays documentation across supported versions to clarify the semantics of the intrinsic .ForEach('PropertyName') overload when the targeted property value is itself a collection.
Changes:
- Added a NOTE and example showing that
.ForEach('Value')returns one result per input object, so array-valued properties become nested collections (requiring double indexing like[0][0]). - Updated
ms.datein all touched docs to reflect the edit date. - Fixed the PowerShell 7.4 “online version” link to point at the 7.4 view.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| reference/7.6/Microsoft.PowerShell.Core/About/about_Arrays.md | Adds NOTE + example documenting .ForEach('PropertyName') wrapping/nesting behavior; updates ms.date. |
| reference/7.5/Microsoft.PowerShell.Core/About/about_Arrays.md | Same NOTE + example and ms.date update for 7.5 content. |
| reference/7.4/Microsoft.PowerShell.Core/About/about_Arrays.md | Same NOTE + example and ms.date update; corrects “online version” link to the 7.4 view. |
| reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md | Same NOTE + example and ms.date update for 5.1 content. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Learn Build status updates of commit 49e015e: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit aa8947c: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Add note about Property wrapping in ForEach() method
PR Checklist