Overlapped.Unpack(NativeOverlapped*) 方法

定義

重要

此 API 不符合 CLS 規範。

將指定 Unmanaged NativeOverlapped 結構解除封裝到 Managed 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 結構的 Unmanaged 指標。

傳回

Overlapped

Overlapped 物件,包含從原生結構解除封裝的資訊。

屬性

例外狀況

nativeOverlappedPtrnull

備註

在您 NativeOverlapped 呼叫 Free 方法之前,結構不會從實體記憶體釋放。

適用於