Skip to content

Commit

Permalink
(MicrosoftDocsGH-11696) Fix note about static property mutablity (Mic…
Browse files Browse the repository at this point in the history
…rosoftDocs#11713)

This change fixes MicrosoftDocs#11696 by adding the missing text explaining
how static properties defined on classes implemented in
PowerShell are not immutable and can be overriden.
  • Loading branch information
michaeltlombardi authored Jan 21, 2025
1 parent a22d1b3 commit 1dfc1e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes how to define properties for PowerShell classes.
Locale: en-US
ms.date: 11/13/2023
ms.date: 01/21/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about_Classes_Properties
Expand Down Expand Up @@ -527,7 +527,8 @@ properties:

> [!IMPORTANT]
> Static properties for classes defined in PowerShell aren't immutable. They
> can
> can be overridden to any valid value, as defined by the static property's
> type and attributes.
## Derived class properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes how to define properties for PowerShell classes.
Locale: en-US
ms.date: 11/13/2023
ms.date: 01/21/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about_Classes_Properties
Expand Down Expand Up @@ -523,7 +523,8 @@ properties:

> [!IMPORTANT]
> Static properties for classes defined in PowerShell aren't immutable. They
> can
> can be overridden to any valid value, as defined by the static property's
> type and attributes.
## Derived class properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes how to define properties for PowerShell classes.
Locale: en-US
ms.date: 11/13/2023
ms.date: 01/21/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about_Classes_Properties
Expand Down Expand Up @@ -522,7 +522,8 @@ properties:

> [!IMPORTANT]
> Static properties for classes defined in PowerShell aren't immutable. They
> can
> can be overridden to any valid value, as defined by the static property's
> type and attributes.
## Derived class properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes how to define properties for PowerShell classes.
Locale: en-US
ms.date: 11/13/2023
ms.date: 01/21/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about_Classes_Properties
Expand Down Expand Up @@ -523,7 +523,8 @@ properties:

> [!IMPORTANT]
> Static properties for classes defined in PowerShell aren't immutable. They
> can
> can be overridden to any valid value, as defined by the static property's
> type and attributes.
## Derived class properties

Expand Down

0 comments on commit 1dfc1e6

Please sign in to comment.