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 волокна — это непрозрачные маркеры, используемые узлом при предупреждении среды CLR своим решениям по планированию волокон. Они состоят из стека и контекста регистрации.

Применяется к

См. также раздел