Skip to content

PowerShell functions and script cmdlets will support the 'Clean' block besides the existing Begin, Process, and End #8090

@daxian-dbw

Description

@daxian-dbw

Summary of the new document or enhancement

The feature will be checked in to PowerShell 7.3 branch.

Description of what changed

The new 'clean' block will be supported for PowerShell functions and script cmdlets, to help clean up resources.
For details, please take a look at the RFC listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aboutArea - About_ topicsarea-coreArea - Microsoft.PowerShell.Core module

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions