Skip to content

Commit 1dfc1e6

Browse files
(GH-11696) Fix note about static property mutablity (#11713)
This change fixes #11696 by adding the missing text explaining how static properties defined on classes implemented in PowerShell are not immutable and can be overriden.
1 parent a22d1b3 commit 1dfc1e6

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Classes_Properties.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to define properties for PowerShell classes.
33
Locale: en-US
4-
ms.date: 11/13/2023
4+
ms.date: 01/21/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Classes_Properties
@@ -527,7 +527,8 @@ properties:
527527

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

reference/7.4/Microsoft.PowerShell.Core/About/about_Classes_Properties.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to define properties for PowerShell classes.
33
Locale: en-US
4-
ms.date: 11/13/2023
4+
ms.date: 01/21/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.4&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Classes_Properties
@@ -523,7 +523,8 @@ properties:
523523

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

reference/7.5/Microsoft.PowerShell.Core/About/about_Classes_Properties.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to define properties for PowerShell classes.
33
Locale: en-US
4-
ms.date: 11/13/2023
4+
ms.date: 01/21/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.5&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Classes_Properties
@@ -522,7 +522,8 @@ properties:
522522

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

reference/7.6/Microsoft.PowerShell.Core/About/about_Classes_Properties.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to define properties for PowerShell classes.
33
Locale: en-US
4-
ms.date: 11/13/2023
4+
ms.date: 01/21/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_classes_properties?view=powershell-7.6&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Classes_Properties
@@ -523,7 +523,8 @@ properties:
523523

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

0 commit comments

Comments
 (0)