Marshal.GetThreadFromFiberCookie(Int32) Método

Definición

Precaución

The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.

Convierte una cookie de fibra en la correspondiente instancia Thread.

public:
 static System::Threading::Thread ^ GetThreadFromFiberCookie(int cookie);
public static System.Threading.Thread GetThreadFromFiberCookie (int cookie);
[System.Obsolete("The GetThreadFromFiberCookie method has been deprecated.  Use the hosting API to perform this operation.", false)]
public static System.Threading.Thread GetThreadFromFiberCookie (int cookie);
[System.Obsolete("The GetThreadFromFiberCookie method has been deprecated.  Use the hosting API to perform this operation.", false)]
[System.Security.SecurityCritical]
public static System.Threading.Thread GetThreadFromFiberCookie (int cookie);
static member GetThreadFromFiberCookie : int -> System.Threading.Thread
[<System.Obsolete("The GetThreadFromFiberCookie method has been deprecated.  Use the hosting API to perform this operation.", false)>]
static member GetThreadFromFiberCookie : int -> System.Threading.Thread
[<System.Obsolete("The GetThreadFromFiberCookie method has been deprecated.  Use the hosting API to perform this operation.", false)>]
[<System.Security.SecurityCritical>]
static member GetThreadFromFiberCookie : int -> System.Threading.Thread
Public Shared Function GetThreadFromFiberCookie (cookie As Integer) As Thread

Parámetros

cookie
Int32

Entero que representa una cookie de fibra.

Devoluciones

Subproceso correspondiente al parámetro cookie.

Atributos

Excepciones

El parámetro cookie es 0.

Comentarios

Las cookies de fibra son tokens opacos que el host usa al alertar a Common Language Runtime a sus decisiones de programación de fibra. Constan de una pila y un contexto de registro.

Se aplica a

Consulte también