Marshal.GetThreadFromFiberCookie(Int32) 方法

定义

注意

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

将光纤 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

一个表示光纤 Cookie 的整数。

返回

对应于参数的 cookie 线程。

属性

例外

参数 cookie 为 0。

注解

光纤 Cookie 是主机在通知公共语言运行时对其光纤计划决策发出警报时使用的不透明令牌。 它们由堆栈和注册上下文组成。

适用于

另请参阅