Modifica

Condividi tramite


ThreadPoolBoundHandle.GetNativeOverlappedState(NativeOverlapped*) Method

Definition

Important

This API is not CLS-compliant.

Returns the user-provided object that was specified when the NativeOverlapped instance was allocated by calling the AllocateNativeOverlapped(IOCompletionCallback, Object, Object) method.

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

Parameters

overlapped
NativeOverlapped*

An unmanaged pointer to the NativeOverlapped structure from which to return the associated user-provided object.

Returns

A user-provided object that distinguishes this NativeOverlapped instance from other NativeOverlapped instances, or null if one was not specified when the instance was allocated by calling the AllocateNativeOverlapped method.

Attributes

Exceptions

overlapped is null.

Applies to