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 instancia correspondiente 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 que corresponde al cookie parámetro .

Atributos

Excepciones

El cookie parámetro es 0.

Comentarios

Las cookies de fibra son tokens opacos que usa el host 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