語言

Overlapped.Unpack(NativeOverlapped*) 方法

定義

重要

此 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。

備註

NativeOverlapped結構不會從實體記憶體中釋放,直到你呼叫該Free方法。

適用於