Search notes:

PowerShell: object members

A PowerShell object has a collection of members. There are two types of members: properties store a value, methods are able to execute some sort of code.
There are quite a few member types which are enumerated in the System.Management.Automation.PSMemberTypes enum.
The members of an object can be shown by piping it to the get-member cmdLet:
$obj = get-item .
$obj | get-member
Objects that are related to items seem to have the following «special» properties:
psChildName
psDrive
psIsContainer
psParentPath
psPath
psProvider
Such a list can be obtained with the following pipeline:
get-item . | get-member -memberType noteProperty
These ps* properties are even present in the object that are returned by get-content:
PS C:\> ( get-content  someFile.txt )[0] | select-object *
Compare with an object's intrinsic members.

See also

The cmdlet noun member
A PowerShell script can be made more robust by making sure referenced object-members actually exist by using the statement set-strictMode -version 2 in a script.

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/...', 1743248603, '18.221.200.48', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/object/member/index(73): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78