Overlapped.Unpack(NativeOverlapped*) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
将指定的非托管 NativeOverlapped 结构解压缩为 Overlapped 对象。
public:
static System::Threading::Overlapped ^ Unpack(System::Threading::NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
public static System.Threading.Overlapped Unpack (System.Threading.NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static System.Threading.Overlapped Unpack (System.Threading.NativeOverlapped* nativeOverlappedPtr);
[<System.CLSCompliant(false)>]
static member Unpack : nativeptr<System.Threading.NativeOverlapped> -> System.Threading.Overlapped
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member Unpack : nativeptr<System.Threading.NativeOverlapped> -> System.Threading.Overlapped
参数
- nativeOverlappedPtr
- NativeOverlapped*
一个指向 NativeOverlapped 结构的非托管指针。
返回
一个 Overlapped 对象,包含从本机结构解压缩的信息。
- 属性
例外
nativeOverlappedPtr
为 null
。
注解
在调用Free该方法之前,结构NativeOverlapped不会从物理内存中释放。