TypeName

noun

say it: “TYPE-naym” /ˈtaɪpneɪm/

The name of the kind of object PowerShell is describing, shown on the first line of Get-Member's output.

What is the TypeName that Get-Member shows?

The TypeName is the first line Get-Member prints: the kind of object it is describing. Every file is a System.IO.FileInfo (read "file info"), so every file has the same properties, each with its own values; a date is a System.DateTime.

Get-Item sunset.jpg | Get-Member
#    TypeName: System.IO.FileInfo

In a sentence

  • “Get-Member's TypeName line said System.IO.FileInfo, so the object was a file.”
  • “Every date has the same TypeName, System.DateTime, and so the same properties.”

Level: Apprentice · More PowerShell terms at this level

Updated