Прочетете на английски Редактиране

Споделяне чрез


Marshal.InitHandle(SafeHandle, IntPtr) Method

Definition

Initializes the underlying handle of a newly created SafeHandle to the provided value.

C#
public static void InitHandle(System.Runtime.InteropServices.SafeHandle safeHandle, IntPtr handle);

Parameters

safeHandle
SafeHandle

SafeHandle instance to update

handle
IntPtr

Pre-existing handle

Applies to

Продукт Версии
.NET 6, 7, 8, 9, 10