Creates a new instance of the System.Threading.Thread class.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public static Thread CreateThread( ParameterizedThreadStart start, int maxStackSize )
Public Shared Function CreateThread ( _ start As ParameterizedThreadStart, _ maxStackSize As Integer _ ) As Thread
public: static Thread^ CreateThread( ParameterizedThreadStart^ start, int maxStackSize )
public static Thread CreateThread( ParameterizedThreadStart start, int maxStackSize )
Parameters
- start (ParameterizedThreadStart)
- A System.Threading.ParameterizedThreadStart 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.