ThreadPoolBoundHandle.GetNativeOverlappedState(NativeOverlapped*) 方法

定義

重要

此 API 不符合 CLS 規範。

傳回透過呼叫 AllocateNativeOverlapped(IOCompletionCallback, Object, Object) 方法配置 NativeOverlapped 執行個體時,指定的使用者提供物件。

public:
 static System::Object ^ GetNativeOverlappedState(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public static object GetNativeOverlappedState (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public static object? GetNativeOverlappedState (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static object GetNativeOverlappedState (System.Threading.NativeOverlapped* overlapped);
[<System.CLSCompliant(false)>]
static member GetNativeOverlappedState : nativeptr<System.Threading.NativeOverlapped> -> obj
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member GetNativeOverlappedState : nativeptr<System.Threading.NativeOverlapped> -> obj

參數

overlapped
NativeOverlapped*

傳回相關聯的使用者提供物件之 NativeOverlapped 結構的 Unmanaged 指標。

傳回

使用者提供的物件,可將此 NativeOverlapped 執行個體與其他 NativeOverlapped 執行個體區別;或當呼叫 AllocateNativeOverlapped 方法配置執行個體時沒有指定一個,則為 null

屬性

例外狀況

overlappednull

適用於