PSObject PSObject PSObject Constructors

Definition

Overloads

PSObject() PSObject()

Initializes a new instance of PSObject with an PSCustomObject BaseObject

PSObject(Object) PSObject(Object) PSObject(Object)

Initializes a new instance of PSObject wrapping obj (accessible through BaseObject).

PSObject(SerializationInfo, StreamingContext) PSObject(SerializationInfo, StreamingContext) PSObject(SerializationInfo, StreamingContext)

Creates a PSObject from an ISerializable context

PSObject() PSObject()

Initializes a new instance of PSObject with an PSCustomObject BaseObject

public PSObject ();
Public Sub New ()

PSObject(Object) PSObject(Object) PSObject(Object)

Initializes a new instance of PSObject wrapping obj (accessible through BaseObject).

public PSObject (object obj);
new System.Management.Automation.PSObject : obj -> System.Management.Automation.PSObject
Public Sub New (obj As Object)
Parameters
obj
Object Object Object

object we are wrapping

Exceptions

PSObject(SerializationInfo, StreamingContext) PSObject(SerializationInfo, StreamingContext) PSObject(SerializationInfo, StreamingContext)

Creates a PSObject from an ISerializable context

protected PSObject (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.PSObject : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.PSObject
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo SerializationInfo

Serialization information for this instance

context
StreamingContext StreamingContext StreamingContext

The streaming context for this instance

Applies to