Método Marshal.GetThreadFromFiberCookie (Int32)
Dica
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Observação: Esta API agora está obsoleta.
Converte um cookie de fibra na instância System.Threading.Thread correspondente.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
[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
Parâmetros
cookie
Type: System.Int32Um inteiro que representa um cookie de fibra.
Valor Retornado
Type: System.Threading.Thread
Um thread que corresponde ao parâmetro cookie.
Exceções
Exception | Condition |
---|---|
ArgumentException | O parâmetro cookie é 0. |
Comentários
Os cookies de fibra são tokens opacos que são usados pelo host quando o common language runtime para suas decisões de planejamento de fibra de alerta. Eles consistem em uma pilha e registre o contexto.
Segurança
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Informações de Versão
.NET Framework
Disponível desde 1.1
Confira Também
Thread
Classe Marshal
Namespace System.Runtime.InteropServices
Retornar ao início