Sdílet prostřednictvím


ProcessCodeMethods.GetParentProcess(PSObject) Method

Definition

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

Parameters

obj
PSObject

Returns

The parent process, or null if the parent is no longer running.

Applies to