MemoryHandle MemoryHandle MemoryHandle MemoryHandle Struct

定義

提供記憶體區塊的記憶體控制代碼。Provides a memory handle for a block of memory.

public value class MemoryHandle : IDisposable
public struct MemoryHandle : IDisposable
type MemoryHandle = struct
    interface IDisposable
Public Structure MemoryHandle
Implements IDisposable
繼承
MemoryHandleMemoryHandleMemoryHandleMemoryHandle
實作

備註

AMemoryHandle執行個體表示的控制代碼,以固定的記憶體區塊。A MemoryHandle instance represents a handle to a pinned block of memory. 它會傳回下列方法:It is returned by the following methods:

建構函式

MemoryHandle(Void*, GCHandle, IPinnable) MemoryHandle(Void*, GCHandle, IPinnable) MemoryHandle(Void*, GCHandle, IPinnable) MemoryHandle(Void*, GCHandle, IPinnable)

建立記憶體區塊的新記憶體控制代碼。Creates a new memory handle for the block of memory.

屬性

Pointer Pointer Pointer Pointer

傳回記憶體區塊的指標。Returns a pointer to the memory block.

方法

Dispose() Dispose() Dispose() Dispose()

釋放釘選的控制代碼並釋出 IPinnable 執行個體。Frees the pinned handle and releases the IPinnable instance.

適用於