Marshal.GetThreadFromFiberCookie-Methode: (Int32)
Veröffentlicht: Oktober 2016
Hinweis: Diese API ist jetzt veraltet.
Konvertiert ein Fibercookie in die entsprechende System.Threading.Thread-Instanz.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
[SecurityCriticalAttribute]
[ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.",
false)]
public static Thread GetThreadFromFiberCookie(
int cookie
)
public:
[SecurityCriticalAttribute]
[ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.",
false)]
static Thread^ GetThreadFromFiberCookie(
int cookie
)
[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.",
false)>]
static member GetThreadFromFiberCookie :
cookie:int -> Thread
<SecurityCriticalAttribute>
<ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation.",
False)>
Public Shared Function GetThreadFromFiberCookie (
cookie As Integer
) As Thread
Parameter
cookie
Type: System.Int32Eine ganze Zahl, die ein Fibercookie darstellt.
Rückgabewert
Type: System.Threading.Thread
Ein Thread, der dem cookie-Parameter entspricht.
Ausnahmen
Exception | Condition |
---|---|
ArgumentException | Die cookie Parameter 0 ist. |
Hinweise
Fiber-Cookies sind nicht transparent-Token, die vom Host verwendet werden, wenn die common Language Runtime beschließt Fiber-Planen von Warnungen. Sie bestehen aus einem Stapel- und Registerkontext.
Sicherheit
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Versionsinformationen
.NET Framework
Verfügbar seit 1.1
Siehe auch
Thread
Marshal-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang