Marshal.GetThreadFromFiberCookie(Int32) Método

Definição

Atenção

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

Converte um cookie de fibra na instância correspondente 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

Um inteiro que representa um cookie de fibra.

Devoluções

Um fio que corresponde ao cookie parâmetro.

Atributos

Exceções

O cookie parâmetro é 0.

Observações

Cookies de fibra são tokens opacos que são usados pelo anfitrião ao alertar o runtime da linguagem comum para as suas decisões de agendamento de fibra. Consistem num contexto de pilha e registo.

Aplica-se a

Ver também