PSObject Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Encapsulates a base object of type Object or type PSCustomObject to allow for a consistent view of any object within the Windows PowerShell environment.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
System.Management.Automation.PSObject
System.Management.Automation Namespace
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Usage
Visual Basic
Dim instance As PSObject
Syntax
Visual Basic
<SerializableAttribute> _ <TypeDescriptionProviderAttribute(GetType(PSObjectTypeDescriptionProvider))> _ Public Class PSObject Implements IFormattable, IComparable, ISerializable, IDynamicMetaObjectProvider
C#
[SerializableAttribute] [TypeDescriptionProviderAttribute(typeof(PSObjectTypeDescriptionProvider))] public class PSObject : IFormattable, IComparable, ISerializable, IDynamicMetaObjectProvider
C++
[SerializableAttribute] [TypeDescriptionProviderAttribute(typeof(PSObjectTypeDescriptionProvider))] public ref class PSObject : IFormattable, IComparable, ISerializable, IDynamicMetaObjectProvider
J#
/** @attribute SerializableAttribute() */ /** @attribute TypeDescriptionProviderAttribute(System.Management.Automation.PSObjectTypeDescriptionProvider) */ public class PSObject implements IFormattable, IComparable, ISerializable, IDynamicMetaObjectProvider
JScript
SerializableAttribute TypeDescriptionProviderAttribute(System.Management.Automation.PSObjectTypeDescriptionProvider) public class PSObject implements IFormattable, IComparable, ISerializable, IDynamicMetaObjectProvider
Remarks
The PSObject object is the basis for access to all objects from the scripting language and provides an abstraction for the cmdlet developer.
It is permitted to derive from this class, but there is no established scenario for doing this.
Inheritance Hierarchy
System.Object
System.Management.Automation.PSObject
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSee Also
Reference
PSObject MembersSystem.Management.Automation Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.