SafeProcessHandle.TryOpen(Int32, SafeProcessHandle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
static bool TryOpen(int processId, [Runtime::InteropServices::Out] Microsoft::Win32::SafeHandles::SafeProcessHandle ^ % processHandle);
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static bool TryOpen(int processId, out Microsoft.Win32.SafeHandles.SafeProcessHandle? processHandle);
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member TryOpen : int * SafeProcessHandle -> bool
Public Shared Function TryOpen (processId As Integer, ByRef processHandle As SafeProcessHandle) As Boolean
參數
- processId
- Int32
- processHandle
- SafeProcessHandle
傳回
- 屬性