ThreadPoolBoundHandle.GetNativeOverlappedState(NativeOverlapped*) Método

Definición

Importante

Esta API no es conforme a CLS.

Devuelve el objeto proporcionado por el usuario que se especificó cuando la instancia de NativeOverlapped se asignó mediante una llamada al método AllocateNativeOverlapped(IOCompletionCallback, Object, Object).

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

Parámetros

overlapped
NativeOverlapped*

Puntero no administrado a la estructura NativeOverlapped desde la que se va a devolver el objeto proporcionado por el usuario asociado.

Devoluciones

Object

Objeto proporcionado por el usuario que distingue esta instancia de NativeOverlapped de otras instancias de NativeOverlapped, o bien null si no se ha especificado cuando la instancia se asignó mediante una llamada al método AllocateNativeOverlapped.

Atributos

Excepciones

overlapped es null.

Se aplica a