Overlapped.Free(NativeOverlapped*) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
釋放與方法配置的原生重疊結構 Pack 相關的未管理記憶體。
public:
static void Free(System::Threading::NativeOverlapped* nativeOverlappedPtr);
public static void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr);
[System.Security.SecurityCritical]
public static void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr);
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit
[<System.Security.SecurityCritical>]
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit
參數
- nativeOverlappedPtr
- NativeOverlapped*
一個指向待釋放結構的 NativeOverlapped 指標。
- 屬性
例外狀況
nativeOverlappedPtr 是 null。
備註
你必須在每次Free從系統收到NativeOverlapped的指標上呼叫Pack該方法一次。 如果你不呼叫這個方法, Free 你會洩漏記憶體。 如果你呼叫 Free 該方法超過一次,記憶體就會損毀。