Creates a new instance of the System.Threading.Thread class.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public static Thread CreateThread( ThreadStart start, int maxStackSize )
Public Shared Function CreateThread ( _ start As ThreadStart, _ maxStackSize As Integer _ ) As Thread
public: static Thread^ CreateThread( ThreadStart^ start, int maxStackSize )
public static Thread CreateThread( ThreadStart start, int maxStackSize )
Parameters
- start (ThreadStart)
- A System.Threading.ThreadStart delegate that represents the methods to be invoked when this thread begins executing.
- maxStackSize (Int32)
- The maximum stack size to be used by the thread, or 0 to use the default maximum stack size specified in the header for the executable.
Return Value
A new Thread instance.