PSObject Members

Encapsulates a base object of type Object or type PSCustomObject to allow for a consistent view of any object within the Windows PowerShell environment.

The following tables list the members exposed by the PSObject type.

(see also Protected Constructors)
 NameDescription
 PSObjectOverloaded. 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.
Top

  Name Description
  PSObject Overloaded. 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.
Top

  Name Description
public field static AdaptedMemberSetName Specifies the name of the adapted member set. This field is constant.
public field static BaseObjectMemberSetName Specifies the name of the base object member set. These are the members of the encapsulated base object. This field is constant.
public field static ExtendedMemberSetName Specifies the name of the extended member set. These are the members added to the PSObject object. This field is constant.
Top

  Name Description
public property BaseObject Gets the base object of the PSObject object. If the base object is another PSObject object, then its base object is returned.
public property ImmediateBaseObject Gets the encapsulated base object. If the base object is another PSObject object, then its base object is returned.
public property Members Gets all members of this PSObject object. This includes the members of the base object, extended members, and the native members defined by the PSObject class.
public property Methods Gets the methods contained in the PSObject object. This includes the methods of the base object and any extended methods.
public property Properties Gets the properties of the PSObject object. This includes the properties of the base object and any extended properties.
public property TypeNames Gets the type names of the PSObject object.
Top

(see also Protected Methods)
 NameDescription
public methodstaticAsPSObjectInitializes a new instance of the PSObject class based on a supplied object.
public methodCompareToCompares the base object to a specified object.
public methodCopyMakes a copy of the current PSObject object.
public methodEqualsOverridden. Compares the base object to a specified object to see if they are equal.
public methodGetHashCodeOverridden. Retrieves a hash code for a particular type.
public methodGetObjectDataPopulates an object with the data needed to serialize the PSObject. Introduced in Windows PowerShell 3.0.
public methodGetType  (Inherited from Object)
public methodstaticImplicitOverloaded. Converts a type to a PSObject. Introduced in Windows PowerShell 3.0.
public methodToStringOverloaded. Overridden. Converts the base object to a string. The variants of this method can be used to convert the base object by using the default format provider or the specified format provider.
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
  GetMetaObject Retrieves the dynamic metaobject that is responsible for binding operations performed on this PSObject. Introduced in Windows PowerShell 3.0.
Top


Show: