ArcFM Engine Developer Guide
CreateThread Method


A ThreadStart delegate that represents the methods to be invoked when this thread begins executing
CreateThread creates a new Thread object
Syntax
'Declaration
 
Public Shared Function CreateThread( _
   ByVal start As ThreadStart _
) As Thread
'Usage
 
Dim start As ThreadStart
Dim value As Thread
 
value = ThreadFactory.CreateThread(start)
public static Thread CreateThread( 
   ThreadStart start
)

Parameters

start
A ThreadStart delegate that represents the methods to be invoked when this thread begins executing

Return Value

A new Thread object
Remarks
The purpose of CreateThread is to provide a layer of abstraction between code which wants to create a new thread and the creation of that thread. This layer is used for ensuring that all threads are initialized appropriately. This means ensuring that the new Thread's CurrentCulture and CurrentUICulture properties are set. Use this method to replace lines like this:- Thread thread = new Thread(new ThreadStart(DoWork));
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ThreadFactory Class
ThreadFactory Members

 

 


Send Comment