Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSObject Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSObject class. The variants of this constructor can create an object that contains a base object of type PSCustomObject or type Object, or it can create an object with serialization information.

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

NameDescription
System_CAPS_pubmethodPSObject()

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

System_CAPS_pubmethodPSObject(Object)

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

System_CAPS_protmethodPSObject(SerializationInfo, StreamingContext)

Initializes a new instance of the PSObject class with serialization information. Introduced in Windows PowerShell 3.0.

This object is the basis for access to all objects from the scripting language and provides an abstraction for the cmdlet developer.

Return to top

Community Additions

Show: