PSObject Constructor ()


Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSObject class that contains a base object of type PSCustomObject.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

Public Sub New

A base object of type PSCustomObject tells the Windows PowerShell runtime that the encapsulating PSObject object has no meaningful base object. However, this type of encapsulating PSObject object does provide a type name property bag that cmdlet developers can add extended members to. Developers can also specify the type name of the object, which allows this object to share its extended members with other PSObject objects of the same type name.

Return to top

Community Additions