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 de 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 cookie parâmetro.

Atributos

Exceções

O cookie parâmetro é 0.

Comentários

Os cookies de fibra são tokens opacos que são usados pelo host ao alertar o common language runtime para suas decisões de agendamento de fibra. Eles consistem em um contexto de pilha e registro.

Aplica-se a

Confira também