Marshal.GetThreadFromFiberCookie(Int32) Metodo

Definizione

Attenzione

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

Converte un cookie fiber nell'istanza corrispondente 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

Parametri

cookie
Int32

Intero che rappresenta un cookie fiber.

Valori restituiti

Thread che corrisponde al cookie parametro .

Attributi

Eccezioni

Il cookie parametro è 0.

Commenti

I cookie fiber sono token opachi usati dall'host quando si avvisa Common Language Runtime per le decisioni di fiber-scheduling. Sono costituiti da uno stack e da un contesto di registro.

Si applica a

Vedi anche