Skip to content

Commit 64c3709

Browse files
ArieHeinsdwheeler
andauthored
Update about_Functions_Advanced_Methods.md to include clean block in example as well (#11476)
* Update about_Functions_Advanced_Methods.md add clean block to first example * Copy changes to other versions --------- Co-authored-by: Sean Wheeler <[email protected]>
1 parent 81ffa0d commit 64c3709

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how functions that specify the `CmdletBinding` attribute can use the methods and properties that are available to compiled cmdlets.
33
Locale: en-US
4-
ms.date: 03/12/2024
4+
ms.date: 10/16/2024
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_methods?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Functions_Advanced_Methods
@@ -54,7 +54,7 @@ processing, and an `end` block for one-time post-processing.
5454
Function Test-ScriptCmdlet
5555
{
5656
[CmdletBinding(SupportsShouldProcess=$True)]
57-
Param ($Parameter1)
57+
param ($Parameter1)
5858
begin{}
5959
process{}
6060
end{}

reference/7.2/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how functions that specify the `CmdletBinding` attribute can use the methods and properties that are available to compiled cmdlets.
33
Locale: en-US
4-
ms.date: 03/12/2024
4+
ms.date: 10/16/2024
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_methods?view=powershell-7.2&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Functions_Advanced_Methods
@@ -54,7 +54,7 @@ processing, and an `end` block for one-time post-processing.
5454
Function Test-ScriptCmdlet
5555
{
5656
[CmdletBinding(SupportsShouldProcess=$True)]
57-
Param ($Parameter1)
57+
param ($Parameter1)
5858
begin{}
5959
process{}
6060
end{}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how functions that specify the `CmdletBinding` attribute can use the methods and properties that are available to compiled cmdlets.
33
Locale: en-US
4-
ms.date: 05/20/2024
4+
ms.date: 10/16/2024
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_methods?view=powershell-7.4&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Functions_Advanced_Methods
@@ -55,10 +55,11 @@ processing, and an `end` block for one-time post-processing.
5555
Function Test-ScriptCmdlet
5656
{
5757
[CmdletBinding(SupportsShouldProcess=$True)]
58-
Param ($Parameter1)
58+
param ($Parameter1)
5959
begin{}
6060
process{}
6161
end{}
62+
clean{}
6263
}
6364
```
6465

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how functions that specify the `CmdletBinding` attribute can use the methods and properties that are available to compiled cmdlets.
33
Locale: en-US
4-
ms.date: 05/20/2024
4+
ms.date: 10/16/2024
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_methods?view=powershell-7.5&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Functions_Advanced_Methods
@@ -55,10 +55,11 @@ processing, and an `end` block for one-time post-processing.
5555
Function Test-ScriptCmdlet
5656
{
5757
[CmdletBinding(SupportsShouldProcess=$True)]
58-
Param ($Parameter1)
58+
param ($Parameter1)
5959
begin{}
6060
process{}
6161
end{}
62+
clean{}
6263
}
6364
```
6465

0 commit comments

Comments
 (0)