Este tema aún no ha recibido ninguna valoración - Valorar este tema

Thread.CurrentThread (Propiedad)

Obtiene el subproceso actualmente en ejecución.

Espacio de nombres: System.Threading
Ensamblado: mscorlib (en mscorlib.dll)

public static Thread CurrentThread { get; }
/** @property */
public static Thread get_CurrentThread ()

public static function get CurrentThread () : Thread

No aplicable.

Valor de propiedad

Thread que representa el subproceso actualmente en ejecución.

Este ejemplo de código forma parte de un ejemplo más extenso referente a la propiedad IsThreadPoolThread.

static void ThreadMethod()
{
    Console.WriteLine("ThreadOne, executing ThreadMethod, " +
        "is {0}from the thread pool.", 
        Thread.CurrentThread.IsThreadPoolThread ? "" : "not ");
}

Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Compatible con: 2.0, 1.0

XNA Framework

Compatible con: 1.0
¿Le ha resultado útil?
(Caracteres restantes: 1500)