PowerShell Classes for Developers
PowerShell Classes for Developers
Classes in PowerShell have been a feature since long and creating objects of these classes isn’t new. From the classic way of creating objects of .NET classes (like the MailMessage in Example 1 below) or to defining a custom .NET class (in the Example 2 below), we have seen PowerShell extend .NET classes and types in numerous ways. Example 1: Creating object of a .NET class $message = New-Object…
View On WordPress













