From 950bdaf955a19aafe34af257afadaed38b08318b Mon Sep 17 00:00:00 2001 From: Michael Lombardi Date: Wed, 10 Jan 2024 11:02:37 -0600 Subject: [PATCH] (GH-10779) Clarify Static param for `Get-Member` Prior to this change, the documentation for the **Static** parameter on the `Get-Member` cmdlet did not clarify that the cmdlet ignores the **Force** parameter when used with the **Static** parameter. This change: - Clarifies that the cmdlet ignores both the **View** and **Force** parameters when you use the **Static** parameter, not just **View**. - Resolves #10779 - Fixes AB#198702 --- reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md | 8 ++++---- reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md | 8 ++++---- reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md | 8 ++++---- reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md b/reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md index a6141b4e8ad4..cef8b0a89d5e 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 12/12/2022 +ms.date: 01/10/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Member @@ -424,9 +424,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob properties and methods are defined on the class of objects, not on any particular instance of the class. -If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored. -If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the -members that belong to both sets. +If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores +those parameters. If you use the **Static** parameter with the **MemberType** parameter, +`Get-Member` gets only the members that belong to both sets. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md b/reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md index 15fb1645be71..5c741124af64 100644 --- a/reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md +++ b/reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 12/12/2022 +ms.date: 01/10/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Member @@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob properties and methods are defined on the class of objects, not on any particular instance of the class. -If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored. -If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the -members that belong to both sets. +If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores +those parameters. If you use the **Static** parameter with the **MemberType** parameter, +`Get-Member` gets only the members that belong to both sets. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md b/reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md index 0cfe22ad6f4f..9e92b7816f72 100644 --- a/reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md +++ b/reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 12/12/2022 +ms.date: 01/10/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Member @@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob properties and methods are defined on the class of objects, not on any particular instance of the class. -If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored. -If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the -members that belong to both sets. +If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores +those parameters. If you use the **Static** parameter with the **MemberType** parameter, +`Get-Member` gets only the members that belong to both sets. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md b/reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md index c0ea35eec530..a9018165e107 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 12/12/2022 +ms.date: 01/10/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: Get-Member @@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob properties and methods are defined on the class of objects, not on any particular instance of the class. -If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored. -If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the -members that belong to both sets. +If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores +those parameters. If you use the **Static** parameter with the **MemberType** parameter, +`Get-Member` gets only the members that belong to both sets. ```yaml Type: System.Management.Automation.SwitchParameter