ArcFM Desktop Developer Guide
WorkerThread Constructor(DelegatedThreadStart,String,Boolean)
Example 


Delegated Thread Start
Name of Thread
If autoStart is true, starts the underlying thread. If autoStart is false, must call Start() as well.
Constructs the WorkerThread object and potentially starts the underlying thread.
Syntax
'Declaration
 
Public Function New( _
   ByVal start As DelegatedThreadStart, _
   ByVal name As String, _
   ByVal autoStart As Boolean _
)
'Usage
 
Dim start As DelegatedThreadStart
Dim name As String
Dim autoStart As Boolean
 
Dim instance As New WorkerThread(start, name, autoStart)
public WorkerThread( 
   DelegatedThreadStart start,
   string name,
   bool autoStart
)

Parameters

start
Delegated Thread Start
name
Name of Thread
autoStart
If autoStart is true, starts the underlying thread. If autoStart is false, must call Start() as well.
Example
This sample shows how to use WorkerThread. Easiest: Or:
workerThread workerThread = new WorkerThread(true);
/*When you are done */
workerThread.Kill();
workerThread workerThread = new WorkerThread(false);
workerThread.Start();
/*When you are done */
workerThread.Kill();
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

WorkerThread Class
WorkerThread Members
Overload List

 

 


Send Comment