Search notes:

PowerShell cmdLet Get-TypeData

The cmdlet get-TypeData shows extended type data in the current session.
This cmdlet returns an array of System.Management.Automation.Runspaces.TypeData objects.
PS> $sif = get-typeData System.IO.FileInfo
PS> $sif.members

Key         Value
---         -----
Mode        System.Management.Automation.Runspaces.CodePropertyData
VersionInfo System.Management.Automation.Runspaces.ScriptPropertyData
BaseName    System.Management.Automation.Runspaces.ScriptPropertyData
Target      System.Management.Automation.Runspaces.CodePropertyData
LinkType    System.Management.Automation.Runspaces.CodePropertyData

PS> $sif.members['BaseName'].GetScriptBlock
if ($this.Extension.Length -gt 0){$this.Name.Remove($this.Name.Length - $this.Extension.Length)}else{$this.Name}
The extensions can also be inspected with the psExtended member:
$fi = [System.IO.FileInfo] 'P:/ath/to/a/file.txt'
$fi.psExtended

See also

Powershell command noun: typeData

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758194178, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/typeData/get(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78