Process.SafeHandle 属性

定义

获取此进程的本机句柄。

C#
public Microsoft.Win32.SafeHandles.SafeProcessHandle SafeHandle { get; }
C#
[System.ComponentModel.Browsable(false)]
public Microsoft.Win32.SafeHandles.SafeProcessHandle SafeHandle { get; }

属性值

此进程的本机句柄。

属性

注解

仅当调用组件启动进程时,句柄才可用。

适用于

产品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1