Editare

Partajați prin


HandleRef(Object, IntPtr) Constructor

Definition

Initializes a new instance of the HandleRef class with the object to wrap and a handle to the resource used by unmanaged code.

public:
 HandleRef(System::Object ^ wrapper, IntPtr handle);
public HandleRef (object? wrapper, IntPtr handle);
public HandleRef (object wrapper, IntPtr handle);
new System.Runtime.InteropServices.HandleRef : obj * nativeint -> System.Runtime.InteropServices.HandleRef
Public Sub New (wrapper As Object, handle As IntPtr)

Parameters

wrapper
Object

A managed object that should not be finalized until the platform invoke call returns.

handle
IntPtr

nativeint

An IntPtr that indicates a handle to a resource.

Applies to