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 结构的非托管指针,将从该结构中返回用户提供的关联对象。
返回
用户提供的对象,用于区分此 NativeOverlapped 实例与其他 NativeOverlapped 实例,或者,如果在通过调用 AllocateNativeOverlapped 方法分配实例时未进行指定,则为 null
。
- 属性
例外
overlapped
为 null
。