Export (0) Print
Expand All

PSObject Constructor (Object)

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


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

'Usage
Dim obj As Object

Dim instance As New PSObject(obj)

[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="obj", Justification="This is shipped as part of V1. Retaining this for backward compatibility.")] 
public PSObject (
	Object obj
)
/** @attribute SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="obj", Justification="This is shipped as part of V1. Retaining this for backward compatibility.") */ 
public PSObject (
	Object obj
)
SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="obj", Justification="This is shipped as part of V1. Retaining this for backward compatibility.") 
public function PSObject (
	obj : Object
)

Parameters

obj

The base object of type Object that is encapsulated.

Exception typeCondition
ArgumentNullException

obj is null.

The type name for the created object is a collection of the derivation hierarchy of the base object. For example, the type name for a PSObject object with a ProcessInfo base object would include the following names.

  • System.Diagnostics.Process

  • System.ComponentModel.Component

  • System.MarshalByRefObject

  • System.Object


 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft