Language

SafeProcessHandle.TryOpen(Int32, SafeProcessHandle) Method

Definition

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

Parameters

processId
Int32
processHandle
SafeProcessHandle

Returns

Attributes

Applies to