Thread2 Interface

Represents a thread in a Visual Studio application.

Namespace:  EnvDTE90
Assembly:  EnvDTE90 (in EnvDTE90.dll)

Syntax

'Declaration
<GuidAttribute("86FD0779-FBBE-41CC-B444-6EE8676F4F2C")> _
Public Interface Thread2 _
    Inherits Thread
[GuidAttribute("86FD0779-FBBE-41CC-B444-6EE8676F4F2C")]
public interface Thread2 : Thread
[GuidAttribute(L"86FD0779-FBBE-41CC-B444-6EE8676F4F2C")]
public interface class Thread2 : Thread
[<GuidAttribute("86FD0779-FBBE-41CC-B444-6EE8676F4F2C")>]
type Thread2 =  
    interface 
        interface Thread 
    end
public interface Thread2 extends Thread

The Thread2 type exposes the following members.

Properties

  Name Description
Public property Category
Public property Collection Gets the collection that contains this thread.
Public property DisplayName
Public property DTE Gets the top-level extensibility object.
Public property Flag Gets or sets a flag on an individual thread.
Public property ID Gets the thread ID.
Public property IsAlive Gets whether the referenced thread is still alive.
Public property IsFrozen Gets whether or not a thread's execution has been suspended by the debugger.
Public property Location Gets the address at which the thread was executing code at the time the process was stopped for debugging.
Public property Name Gets the name of the thread.
Public property Parent Gets the immediate parent object of a Thread object.
Public property Priority Gets the scheduling priority of the thread.
Public property Program Deprecated. Do not use.
Public property StackFrames Gets the collection of stack frames through which this thread is executing.
Public property SuspendCount Gets the number of times this thread has been suspended by the debugger.

Top

Methods

  Name Description
Public method Freeze Stops the thread from executing.
Public method Thaw Allows the thread to resume execution.

Top

See Also

Reference

EnvDTE90 Namespace

Other Resources

Debug Threads and Processes in Visual Studio

Automation Object Model Chart

How to: Use the Threads Window