Marshal.GetThreadFromFiberCookie(Int32) 方法

定義

警告

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

將 Fiber Cookie 轉換成對應的 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

參數

cookie
Int32

表示 Fiber Cookie 的整數。

傳回

對應於 cookie 參數的執行緒。

屬性

例外狀況

cookie 參數為 0。

備註

光纖 Cookie 是主機在警示 Common Language Runtime 對其光纖排程決策時所使用的不透明權杖。 它們是由堆疊和暫存器內容所組成。

適用於

另請參閱