February 2019
Intermediate to advanced
626 pages
15h 51m
English
In this chapter, we explored enumerations and classes in PowerShell. Classes were introduced with PowerShell 5.0 and continue to expand with PowerShell Core.
We covered how to create a class, including defining properties, constructors, and methods.
We looked at a few different uses of classes, starting with argument-transformation attributes and validation attributes, and finishing with class-based DSC resources.
In the next chapter, we will explore building modules, including how modules might be structured during development and assembled into a single file for use.
Read now
Unlock full access