Condividi tramite


Marshal.GetThreadFromFiberCookie(Int32) Metodo

Definizione

Attenzione

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

Converte un fiber cookie nella corrispondente istanza di 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 fiber cookie.

Restituisce

Thread che corrisponde al parametro cookie.

Attributi

Eccezioni

Il parametro cookie è 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 registrazione.

Si applica a

Vedi anche