ThreadPoolBoundHandle.GetNativeOverlappedState(NativeOverlapped*) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 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
。
- 屬性
例外狀況
overlapped
為 null
。