Windows Dev Center

PSObject Constructor

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.

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

NameDescription
PSObject ()Initializes a new instance of the PSObject class that contains a base object of type PSCustomObject.
PSObject (Object)Initializes a new instance of the PSObject class that contains a base object of type Object.
PSObject (SerializationInfo, StreamingContext)Initializes a new instance of the PSObject class with serialization information. Introduced in Windows PowerShell 3.0.


Show:
© 2015 Microsoft