Overlapped.Free(NativeOverlapped*) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
释放与方法分配 Pack 的本机重叠结构关联的非托管内存。
public:
static void Free(System::Threading::NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
public static void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr);
[<System.CLSCompliant(false)>]
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit
参数
- nativeOverlappedPtr
- NativeOverlapped*
指向要释放的结构的 NativeOverlapped 指针。
- 属性
例外
nativeOverlappedPtr 是 null。
注解
必须在从Free该方法收到的每个NativeOverlapped指针上完全调用Pack该方法一次。 如果不调用该方法 Free ,将泄漏内存。 如果多次调用 Free 该方法,内存将损坏。