Marshal::GetThreadFromFiberCookie Method (Int32)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Return to top
Converts a fiber cookie into the corresponding System.Threading::Thread instance.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] [ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.", false)] static Thread^ GetThreadFromFiberCookie( int cookie )
Parameters
- cookie
-
Type:
System::Int32
An integer that represents a fiber cookie.
| Exception | Condition |
|---|---|
| ArgumentException | The cookie parameter is 0. |
Fiber cookies are opaque tokens that are used by the host when alerting the common language runtime to its fiber-scheduling decisions. They consist of a stack and register context.
SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
.NET Framework
Available since 1.1
Available since 1.1
Show: