Marshal.GetThreadFromFiberCookie(Int32) Méthode

Définition

Attention

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

Convertit un cookie fibre en l’instance correspondante 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

Paramètres

cookie
Int32

Entier qui représente un cookie de fibre.

Retours

Thread qui correspond au cookie paramètre.

Attributs

Exceptions

Le cookie paramètre est 0.

Remarques

Les cookies fibre sont des jetons opaques utilisés par l’hôte lors de l’alerte du Common Language Runtime à ses décisions de planification fibre. Ils se composent d’une pile et d’un contexte d’inscription.

S’applique à

Voir aussi