ProcessExtensionsGetParentProcess Method
Gets the parent process that created the specified process.
Namespace: DevCase.Extensions.ProcessExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Process GetParentProcess(
this Process pr
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetParentProcess (
pr As Process
) As Process
Dim pr As Process
Dim returnValue As Process
returnValue = pr.GetParentProcess()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Process^ GetParentProcess(
Process^ pr
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetParentProcess :
pr : Process -> Process
No code example is currently available or this language may not be supported.
- pr Process
-
The source Process.
Process
The parent process that created the specified process,
or
if the parent process has exited.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Process. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim pr As Process = Process.GetCurrentProcess()
Dim parent As Process = GetParentProcess(pr)
Console.WriteLine(parent.ProcessName)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.