Fixes #12605 - Update description of instantiation syntax#12688
Fixes #12605 - Update description of instantiation syntax#12688michaeltlombardi merged 4 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
This PR updates the documentation for PowerShell class instantiation syntax to provide a more accurate and generic description. The changes clarify that the syntax supports type conversion for various value types, not just hashtables.
Changes:
- Updated the instantiation syntax description from hashtable-specific to generic convertable-value-type
- Added a new Example 2 demonstrating instantiation syntax with both hashtable and array examples
- Renumbered subsequent examples (Example 2→3, Example 3→4, Example 4→5)
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_Classes.md | Updated syntax documentation, added instantiation example, renumbered examples |
| reference/7.5/Microsoft.PowerShell.Core/About/about_Classes.md | Updated syntax documentation, added instantiation example, renumbered examples |
| reference/7.4/Microsoft.PowerShell.Core/About/about_Classes.md | Updated syntax documentation, added instantiation example, renumbered examples |
| reference/5.1/Microsoft.PowerShell.Core/About/about_Classes.md | Updated syntax documentation, added instantiation example, renumbered examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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 c003d9b: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Update description of instantiation syntax
PR Checklist