Thread Constructor (ThreadStart)
Initializes a new instance of the Thread class.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- start
- Type: System.Threading.ThreadStart
A ThreadStart delegate that represents the methods to be invoked when this thread begins executing.
| Exception | Condition |
|---|---|
| ArgumentNullException | The start parameter is null. |
A thread does not begin executing when it is created. To schedule the thread for execution, call the Start method.
[Visual Basic]
Note |
|---|
Visual Basic users can omit the ThreadStart constructor when creating a thread. Use the AddressOf operator when passing your method for example Dim t As New Thread(AddressOf ThreadProc). Visual Basic automatically calls the ThreadStart constructor. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note