Marshal.GetThreadFromFiberCookie(Int32) Método

Definição

Cuidado

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

Cuidado

This method has been deprecated

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);
[System.Obsolete("This method has been deprecated")]
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
[<System.Obsolete("This method has been deprecated")>]
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

Thread

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 para suas decisões de agendamento de fibra. Eles consistem em uma pilha e registram contexto.

Aplica-se a

Confira também