As PSObject(Object) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If obj is an PSObject it will be returned as is, otherwise a new PSObject will be created based on obj.
public: static System::Management::Automation::PSObject ^ AsPSObject(System::Object ^ obj);
public static System.Management.Automation.PSObject AsPSObject (object obj);
static member AsPSObject : obj -> System.Management.Automation.PSObject
Public Shared Function AsPSObject (obj As Object) As PSObject
Object to be wrapped.
obj or a new PSObject whose BaseObject is obj
obj is null.