Marshal.GetThreadFromFiberCookie(Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.
Convertit un cookie fiber en l'instance de Thread correspondante.
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 paramètre cookie
.
- Attributs
Exceptions
Le paramètre cookie
est 0.
Remarques
Les cookies de fibre sont des jetons opaques qui sont utilisés par l’hôte lors de l’alerte du Common Language Runtime de ses décisions de planification de la fibre. Ils se composent d’une pile et d’un contexte d’enregistrement.