Redigera

Dela via


MemoryHandle(Void*, GCHandle, IPinnable) Constructor

Definition

Important

This API is not CLS-compliant.

Creates a new memory handle for the block of memory.

[System.CLSCompliant(false)]
public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = default, System.Buffers.IPinnable? pinnable = default);
[System.CLSCompliant(false)]
public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = default, System.Buffers.IPinnable pinnable = default);
[<System.CLSCompliant(false)>]
new System.Buffers.MemoryHandle : nativeptr<unit> * System.Runtime.InteropServices.GCHandle * System.Buffers.IPinnable -> System.Buffers.MemoryHandle

Parameters

pointer
Void*

A pointer to memory.

handle
GCHandle

A handle used to pin array buffers.

pinnable
IPinnable

A reference to a manually managed object, or default if there is no memory manager.

Attributes

Applies to