Skip to content

Edit example 5 "Property" parameter value to "NoteProperty." #8753

@tommymaynard

Description

@tommymaynard

Prerequisites

  • Write a descriptive title.
  • Search the existing issues.
  • I am reporting the documentation problem for version of PowerShell I am using.

Version

5.1, 7.0, 7.1, 7.2, 7.3 (preview)

Link to affected document

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-member#example-5-copy-all-properties-of-an-object-to-another

Description of the documentation error

Example 5 of Add-Member uses an incorrect parameter value for the MemberType parameter. Instead of Property it should be NoteProperty.

Suggested fix

In example 5, change the MemberType parameter value from Property to NoteProperty.

Metadata

Metadata

Assignees

Labels

area-utilityArea - Microsoft.PowerShell.Utility moduleissue-doc-bugIssue - error in documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions