Skip to content

Commit 3f214c0

Browse files
(MicrosoftDocsGH-10779) Clarify Static param for Get-Member (MicrosoftDocs#10783)
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 MicrosoftDocs#10779 - Fixes AB#198702
1 parent 21a0a34 commit 3f214c0

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 12/12/2022
5+
ms.date: 01/10/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-Member
@@ -424,9 +424,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob
424424
properties and methods are defined on the class of objects, not on any particular instance of the
425425
class.
426426

427-
If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored.
428-
If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the
429-
members that belong to both sets.
427+
If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores
428+
those parameters. If you use the **Static** parameter with the **MemberType** parameter,
429+
`Get-Member` gets only the members that belong to both sets.
430430

431431
```yaml
432432
Type: System.Management.Automation.SwitchParameter

reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 12/12/2022
5+
ms.date: 01/10/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.2&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-Member
@@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob
428428
properties and methods are defined on the class of objects, not on any particular instance of the
429429
class.
430430

431-
If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored.
432-
If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the
433-
members that belong to both sets.
431+
If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores
432+
those parameters. If you use the **Static** parameter with the **MemberType** parameter,
433+
`Get-Member` gets only the members that belong to both sets.
434434

435435
```yaml
436436
Type: System.Management.Automation.SwitchParameter

reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 12/12/2022
5+
ms.date: 01/10/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.3&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-Member
@@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob
428428
properties and methods are defined on the class of objects, not on any particular instance of the
429429
class.
430430

431-
If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored.
432-
If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the
433-
members that belong to both sets.
431+
If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores
432+
those parameters. If you use the **Static** parameter with the **MemberType** parameter,
433+
`Get-Member` gets only the members that belong to both sets.
434434

435435
```yaml
436436
Type: System.Management.Automation.SwitchParameter

reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 12/12/2022
5+
ms.date: 01/10/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-member?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-Member
@@ -428,9 +428,9 @@ Indicates that this cmdlet gets only the static properties and methods of the ob
428428
properties and methods are defined on the class of objects, not on any particular instance of the
429429
class.
430430

431-
If you use the **Static** parameter with the **View** parameter, the **View** parameter is ignored.
432-
If you use the **Static** parameter with the **MemberType** parameter, `Get-Member` gets only the
433-
members that belong to both sets.
431+
If you use the **Static** parameter with the **View** or **Force** parameters, the cmdlet ignores
432+
those parameters. If you use the **Static** parameter with the **MemberType** parameter,
433+
`Get-Member` gets only the members that belong to both sets.
434434

435435
```yaml
436436
Type: System.Management.Automation.SwitchParameter

0 commit comments

Comments
 (0)