Powershell Core 6.2 Cookbook
上QQ阅读APP看书,第一时间看更新

Using custom objects

Easier than developing a full class, simple property bags that do not provide class methods are often already enough. As a quite literal bag of properties, these objects are very useful for preparing data for CSV export or simply collecting data from multiple sources in one object.

Other than that, custom objects are also useful as return values for functions and cmdlets.