MemoryHandle(Void*, GCHandle, IPinnable) 建構函式

定義

重要

此 API 不符合 CLS 規範。

建立記憶體區塊的新記憶體控制代碼。

[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

參數

pointer
Void*

記憶體的指標。

handle
GCHandle

用來釘選陣列緩衝區的控制代碼。

pinnable
IPinnable

手動受控物件的參考;如果沒有記憶體管理員,則為 default

屬性

適用於