ProcessCodeMethods.GetParentProcess(PSObject) Method
Important
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.
CodeMethod for getting the parent process of a process.
public:
static System::Object ^ GetParentProcess(System::Management::Automation::PSObject ^ obj);
public static object GetParentProcess (System.Management.Automation.PSObject obj);
static member GetParentProcess : System.Management.Automation.PSObject -> obj
Public Shared Function GetParentProcess (obj As PSObject) As Object
Public Function GetParentProcess (obj As PSObject) As Object
- obj
- PSObject
The parent process, or null if the parent is no longer running.