Compartilhar via


Marshal.GetThreadFromFiberCookie(Int32) Método

Definição

Cuidado

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

Converte um cookie de fibra na instância Thread correspondente.

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

Um inteiro que representa um cookie de fibra.

Retornos

Um thread que corresponde ao parâmetro cookie.

Atributos

Exceções

O parâmetro cookie é 0.

Comentários

Cookies de fibra são tokens opacos usados pelo host ao alertar o Common Language Runtime sobre suas decisões de agendamento de fibra. Eles consistem em um contexto de pilha e registro.

Aplica-se a

Confira também