December 2012
Beginner
312 pages
9h 3m
English
A few chapters back, we showed you how to create a custom formatting view for your tools’ output. In this chapter, we’re going to do something very similar by creating a type extension. Unlike views, which only affect the visual presentation of your output, a type extension can actually add functionality to objects you write to the pipeline.
Believe it or not, you’ve already seen type extensions in action. For example, run Get-Process | Get-Member, and look at the output:
TypeName: System.Diagnostics.Process Name MemberType Definition ---- ---------- ---------- Handles AliasProperty Handles = Handlecount Name AliasProperty Name = ProcessName NPM AliasProperty ...
Read now
Unlock full access