Marshal.GetThreadFromFiberCookie(Int32) Methode

Definitie

Let op

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

Converteert een glasvezel cookie naar het bijbehorende Thread exemplaar.

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

Parameters

cookie
Int32

Een geheel getal dat een glasvezel cookie vertegenwoordigt.

Retouren

Een thread die overeenkomt met de cookie parameter.

Kenmerken

Uitzonderingen

De cookie parameter is 0.

Opmerkingen

Glasvezelcookies zijn ondoorzichtige tokens die door de host worden gebruikt bij het waarschuwen van de algemene taalruntime bij de beslissingen over het plannen van glasvezel. Ze bestaan uit een stack en registercontext.

Van toepassing op

Zie ook