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 パラメーターが 0 です。

注釈

ファイバー Cookie は、共通言語ランタイムにファイバー スケジューリングの決定を警告するときにホストによって使用される不透明なトークンです。 これらは、スタックと登録コンテキストで構成されます。

適用対象

こちらもご覧ください