Marshal.GetThreadFromFiberCookie(Int32) Metodo

Definizione

Attenzione

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

Attenzione

This method has been deprecated

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);
[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

Parametri

cookie
Int32

Intero che rappresenta un fiber cookie.

Restituisce

Thread

Thread che corrisponde al parametro cookie.

Attributi

Eccezioni

Il parametro cookie è 0.

Commenti

I cookie fibre sono token opachi usati dall'host quando si avvisa common language runtime alle decisioni di pianificazione della fibra. Sono costituiti da uno stack e un contesto di registrazione.

Si applica a

Vedi anche