Thread Constructor (ThreadStart)
.NET Framework 4
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Portable Class Library
Doesn't appear to support the creation of a new thread.. perhaps the documentation is out of date ?
- 11/4/2011
- TheLogster
Note