Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-10779) Clarify Static param for Get-Member #10783

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reference/5.1/Microsoft.PowerShell.Utility/Get-Member.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions reference/7.2/Microsoft.PowerShell.Utility/Get-Member.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions reference/7.3/Microsoft.PowerShell.Utility/Get-Member.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions reference/7.4/Microsoft.PowerShell.Utility/Get-Member.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down