Powershell Best Practice #22: Use Obsolete attribute for backwards compatibility

By | October 7, 2015

Best Practice: You should add Obsolete attribute if you decide to rename/suppress a parameter for backwards compatibility.

Explanation:

By using the Obsolete attribute you provide backwards compatibility, in case users want to use that they will be informed that the parameter became obsolete.

powershell obsolete parameters


previous-buttonnext-button

Leave a Reply

Your email address will not be published. Required fields are marked *