Bagikan melalui


Marshal.GetThreadFromFiberCookie(Int32) Metode

Definisi

Perhatian

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

Mengonversi cookie serat menjadi instans yang Thread sesuai.

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

Parameter

cookie
Int32

Bilangan bulat yang mewakili cookie serat.

Mengembalikan

Utas cookie yang sesuai dengan parameter .

Atribut

Pengecualian

Parameternya cookie adalah 0.

Keterangan

Cookie serat adalah token buram yang digunakan oleh host saat memperingatkan runtime bahasa umum terhadap keputusan penjadwalan seratnya. Mereka terdiri dari tumpukan dan konteks pendaftaran.

Berlaku untuk

Lihat juga