Members
At the beginning of this chapter, the idea of properties and methods was introduced. These are part of a set of items collectively known as members. These are with which we interact with an object. A few of the more frequently used members are NoteProperty, ScriptProperty, ScriptMethod, and Event.
Note
What are the member types?
The list of possible member types can be viewed on MSDN, which includes a short description of each member type:
https://msdn.microsoft.com/en-us/library/system.management.automation.psmembertypes(v=vs.85).aspx
This chapter focuses on the different property members: Property, NoteProperty, and ScriptProperty. They are most relevant to the commands in this chapter.
The Get-Member command
The Get-Member command is used to view the different members of an object. For example, it can be used to list all of the members of a process object (returned by Get-Process):
Get-Process -Id $PID | Get-MemberGet-Member offers filters using its parameters (MemberType, Static, and...